Your function only changes the GUI (like the GsiSetShiftState function) ,
I am trying to force the underlying Graffiti engine into punctuation mode
(like the GrfSetState function..
LionScribe
On Wed, 19 Nov 2003 14:53:00 +0700 "Apichart Chongcharoen"
<[EMAIL PROTECTED]> writes:
> I have try to set it from GSI function but it not work on OS5.
> for OS5 you have to draw it by WinDrawChars like this
> 
> static void MyDrawGSI(UInt16 state)
> {
>  FormPtr frm;
>  UInt16 num,i;
>  RectangleType r;
>  Char ch[2];
>  FontID fnt;
> 
>  if(!GsiEnabled()) return;
> 
>  ch[1] = 0;
>  switch(state){
>   case gsiShiftNone:
>    ch[0]=18;
>    break;
>   case gsiNumLock:
>    ch[0]=14;
>    break;
>   case gsiCapsLock:
>    ch[0]=13;
>    break;
>   case gsiShiftPunctuation:
>    ch[0]=16;
>    break;
>   case gsiShiftExtended:
>    ch[0]=17;
>    break;
>   case gsiShiftUpper:
>    ch[0]=15;
>    break;
>   case gsiShiftLower:
>    ch[0]=18;
>    break;
>  }
>  frm = FrmGetActiveForm();
>  num = FrmGetNumberOfObjects(frm);
>  for(i=0;i<num;i++){
>   if(FrmGetObjectType(frm, i)==frmGraffitiStateObj){
>    FrmGetObjectBounds (frm, i, &r);
>    fnt = FntGetFont();
>    FntSetFont(symbolFont);
>    WinDrawChars(ch,1,r.topLeft.x,r.topLeft.y);
>    FntSetFont(fnt);
>    break;
>   }
>  }
> }
> 
> 
> "Arye Schreiber" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Is there anyway to force the graffiti state to the punctuation or
> > extended shift position (the tempShift value). GrfGetState returns 
> this
> > value, but GrfSetState does not allow you to set it. Is there 
> another way
> > to do this?
> > LionScribe
> >
> > ________________________________________________________________
> > The best thing to hit the internet in years - Juno SpeedBand!
> > Surf the web up to FIVE TIMES FASTER!
> > Only $14.95/ month - visit www.juno.com to sign up today!
> >
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to 
> unsubscribe, please see http://www.palmos.com/dev/support/forums/
> 
> 

________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to