Hi druid,
you should return false (or handled, in this case), not true, in
frmMain_fldNewDesc_OnfldEnter, so the OS
can handle the fldEnterEvent correctly.
Am Samstag, 16. Juli 2005 08:37 schrieb [EMAIL PROTECTED]:
> "Helmut A. Bender" <[EMAIL PROTECTED]> wrote ..
> > If you return false in your event handling function the os takes the
> > appropriate actions for this event. You try to handle the fldEnterEvent
> > yourself with setting the focus and starting SysKeyboardDialog.
> >
> > I don't know what the system would do exactly with this event. My
> > suggestion would be to let it do what it wants to and additionaly enqueue
> > the event that opens the keyboard:
>
> Doing this does two things
> one, when I click on DONE on the keyboard it closes
> but the fielddraw is not updated
> two if i use the arrow key to move to the right or try to update
> the field, again it will crash
> see code below
>
>
> static Boolean frmMain_fldNewDesc_OnfldEnter(EventPtr event)
> {
>
> Boolean handled = false;
> EvtEnqueueKey(vchrKeyboardNumeric, 0, commandKeyMask);
> return true;
> }
>
--
Mit freundlichen Grüßen
Helmut A. Bender
Helmut Bender GmbH
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/