You still have a problem - your user can paste lower case characters into
the field and they will stay that way.
Better to intercept the keyDown events and also validate the field when the
form closes.
on 9/22/00 4:45 PM, Marcelo Gorini at [EMAIL PROTECTED] wrote:
> My problem is solved. I intercepted the event like you said but in
> there I used the function GrfSetState to set the Caps lock and worked fine!
>
> case keyDownEvent:
> GrfSetState(true, false,false);
> handled = false;
> break;
snip
> I would like to enter just upper case letters in my fields, so I'm
> trying to set the CapsLock automatically for the graffiti but without
> success. How could I do that? I already tried to use the GrfSetState,
> GsiSetShiftState... How can I create programmatically the two strokes (Caps
> Lock)?
> CW 6, Palm OS 3.5
>
> Thanks!
>
> Marcelo
>
> snip code:
> case frmOpenEvent:
> frmP = FrmGetActiveForm();
>
> // GrfSetState(true, true,true);
>
>
> InfoFormInit( frmP);
> FrmDrawForm ( frmP);
> GrfInitState();
> GrfSetState(true, false,false);
> // GsiSetShiftState(glfCapsLock,glfCapsLock);
> handled = true;
> break;
----------------------------------------------
JB Parrett [EMAIL PROTECTED]
Palm, Inc.
We grow a lot faster than trees,
so we miss a lot of stuff. - B. Andreas
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/