On Wed, Jul 12, 2000 at 05:14:33PM -0500, Rob Graber wrote:
> Has anyone used this api call?  I am unclear as to how to use the parameters
> listed in the following section of the API reference...
> 
> GsiSetShiftState
> Purpose Set the Graffiti-shift state indicator.
> Prototype void GsiSetShiftState (Word lockFlags,
> Word tempShift)
> Parameters lockFlags glfCapsLock or glfNumLock.
> tempShift The current temporary shift.
> Result Returns nothing.
> 
> How should I set these parameters if I want to set the shift indicator to
> off?

I've never used GsiSetShiftState(), but maybe GrfSetState() will do
what you want?

               GrfSetState

      Purpose  Set the current shift state of Graffiti.

    Prototype  Err GrfSetState( Boolean capsLock,
                                Boolean numLock,
                                Boolean upperShift)

   Parameters  capsLock     Set to TRUE to turn on caps lock.
               numLock      Set to TRUE to turn on num lock.
               upperShift   Set to TRUE to put into upper shift.

       Result  Always returns 0.

As the name suggests, GrfSetState() sets the shift state of the
underlying Graffiti engine, w/ the side effect of also changing the
state of the Graffiti shift indicator (note that w/ GsiSetShiftState,
you can turn off the shift indicator, but characters written in
Graffiti will still be shifted; at least this is how I read the docs).

To turn off the shift indicator (by which I'm assuming you mean turn
off the caps lock, not just hide the indicator), simply pass FALSE for
capsLock.

BTW, anyone know what numLock is for??

John

-------------------------------------------------------------------------
John Valdes                        Department of Astronomy & Astrophysics
[EMAIL PROTECTED]                               University of Chicago

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

Reply via email to