This is what worked finaly
Thanks to all who helped, it seems that when you create
any key or enter event, all default action is ceased
and must be hard coded.
UInt16 entered_name = 0;
static Boolean frmMain_fldName_OnfldEnter(EventPtr event)
{
// Insert code for fldName
FormPtr form;
Boolean handled = false;
FieldPtr fldP;
form = FrmGetActiveForm();
FrmSetFocus(form, FrmGetObjectIndex(form, fldName));
fldP = FrmGetObjectPtr(form, FrmGetObjectIndex(form, fldName));
if(entered_name < 1) EvtEnqueueKey(vchrKeyboardNumeric, 0,
commandKeyMask);
entered_name = 1;
FldDrawField(fldP);
handled = true;
return true;
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/