P�st Andreas wrote:
I want to call a function whenever the user writes something into a
field. Which event do I have to react to for it? The only thing I
found so far is he keyDownEvent, but that occurs when the user STARTS
writing, however I need an event whoch occurs when the user has
FINISHED writing, as I need to obtain the new value in the field to
do some calculations with it. Any ideas, anyone?

Boolean HandleKeyDownEvent( EventType *event ) { FormType *frm = FrmGetActiveForm(); uint16_t fldIndex = FrmGetFocus( frm ); FieldType *fld = FrmGetObjectPtr( frm, fldIndex ); FldHandleEvent( fld, event ); /* * Field has been updated, you can get your value now */ return true; }

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to