posted this before, but without response. checked the KB and the FAQ. some
insight, but no answers. anybody tackle this one?
I found that if I indicate that I handled the fldEnterEvent in my form
handler, that the Graffiti state gets set as I desire, but the insertion
point does not appear. I suppose I can code that in as well, but why can't
I just override the Graffiti state *after* the field handler does its job?
> -----Original Message-----
> From: Miller, Gary
> Sent: Wednesday, December 01, 1999 01:40 PM
> To: '[EMAIL PROTECTED]'
> Subject: setting caps lock for fields
>
> i'm looking for the voice of experience. my attempts to set the Graffiti
> shift to caps lock for each field on a form (or even the application) have
> been unsuccessful.
>
> the code below works, but the Graffiti shift appears to get reset after
> the form handler returns. i have to assume that the GrfSetState call
> needs to go somewhere else, or be made during a different event.
Boolean FormHandleEvent( EventPtr event)
{
Boolean handled = false;
if( event->eType == fldEnterEvent)
GrfSetState( true, false, false); //capsLock,
numLock, shift
return handled;
}
> Gary Miller
> Consultant, CIBER Inc.
> (703) 610-6564
> [EMAIL PROTECTED]
>