Webmaster wrote:
> 
> I have 4 fields on form.  I would like to enable the shortcut ./ entrys
> common in other palm apps to make it easy to switch between fields.
> what are the character constants for these shortcuts (forward 1 field /
> back one field) and what is the best way to jump between fields?

   From chars.h:
#define nextFieldChr  0x0103  // Go to next field in form
#define prevFieldChr  0x010C

> currently i use: FrmSetFocus(frmP, FrmGetObjectIndex(frmP, FieldID));

   This should work just fine.  If your fields' rsc id's are sequential
you can keep a static variable to point to the current field and
increment/decrement it when a user enters the next/previous field
char.  If a user taps in another field you can come up with the offset
value in the fldEnterEvent.
   An example of this is available at
http://ourworld.compuserve.com/homepages/mcdan/palm/PLH10Src.zip

Regards,
Daniel.


Reply via email to