/**
 *  @brief Extended version of GrfSetState to allow setting an option and option
lock state.
 *
 *  The original GrfSetState does not have an autoShift parameter because it 
always
 *  assumed that anyone setting the shift state through the API call wanted an
 *  automatic shift. We do not make this assumption.
 *  The shift state can be set by calling either HsGrfSetStateExt() or
GrfSetState().
 *  Either way, we have to make sure that both the keyboard shift state and the
Graffiti
 *  engine’s shift state get set correctly.
 *
 *  @param capsLock:    IN:  Set to turn caps lock on
 *  @param numLock:     IN:  Set to true to turn num lock on
 *  @param optLock:     IN:  Set to true to turn option lock on
 *  @param upperShift:  IN:  Set to true to put into upper shift
 *  @param optShift:    IN:  Set to true to put into option shift
 *  @param autoShift:   IN:  Valid only if upperShift is true. Set to true if 
the
graffiti engine should consider
 *                           the upper shift an auto shift.
 *  @retval Err Always returns 0.
 **/

Err
HsGrfSetStateExt (Boolean capsLock, Boolean numLock, Boolean optLock,
                  Boolean upperShift, Boolean optShift, Boolean autoShift)
                        SYS_SEL_TRAP (sysTrapHsSelector, hsSelGrfSetStateExt);

so set also optLock parameter...its same function only different parameter :-)
in fact what i do is that i set all 3 possibilities to true: numLock,optLock and
optShift. maybe its overkill but it works


Bismi wrote:
> Thanks for your quick response,
>          I was able to put NumLock key ON by passing true for "optShift". But 
> actually i wanted to locked the numLock key.
> 
> Is there any option were i can lock the NumLock key till the user is in that 
> field
> 
> Any help would be appreciated.
> 

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to