Am Freitag, 15. Juli 2005 14:44 schrieb [EMAIL PROTECTED]:
> "Helmut A. Bender" <[EMAIL PROTECTED]> wrote ..
>
> > Am Freitag, 15. Juli 2005 04:42 schrieb druid:
> > > because no matter what I do, it still crashes
> > > I think it's a bug with the SysKeyboardDialog(kbdDefault);
> > > Someone resolve this please, because I really need to be able
> > > to use the call
> > > Of course I will compensate you for your time
> > > have attached the zip of my sinple project
> > >
> > > Thanks
> > > [EMAIL PROTECTED]
>
> Im not sure what your refering to here about rebuilding the event handling
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:
Boolean frmMain_fldLevel_OnfldEnter(EventPtr event)
{
Boolean handled = false;
// Start Keyboard
EvtEnqueueKey(vchrKeyboard, 0, commandKeyMask);
// Let the PalmOS do anything other
return handled;
}
> > I don't know what goes wrong with your code, but it's usually no good
> > idea to rebuild the event handling of the OS on your own as you do with
> > the fldEnterEvent. You simply don't know if you have done anything that
> > is nessesary to work properly.
> >
> > I had the same problem to pop up the SysKeyboardDialog and I solved it
> > with enqueing the keyboard event (in this case, the numeric keyboard) on
> > the fldEnterEvent without setting handled to true:
> >
> > EvtEnqueueKey(vchrKeyboardNumeric, 0, commandKeyMask);
>
> I tried this but the problem still exists
> FormPtr form;
> FieldPtr fldP;
>
> Boolean handled = false;
> form = FrmGetActiveForm();
> FrmSetFocus(form, FrmGetObjectIndex(form, fldNewDesc));
> fldP = FrmGetObjectPtr(form, FrmGetObjectIndex(form, fldNewDesc));
> EvtEnqueueKey(vchrKeyboardNumeric, 0, commandKeyMask);
> SysKeyboardDialog(kbdDefault);
> FldDrawField(fldP);
>
> > Perhaps this works with you, too.
> >
> > --
> > 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/
--
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/