>Is there a way to check if a input field has changed (something like the
>windows OnChange event).

Here's what I do.  This is a very simple version for a form with only one
field - but I'm sure you can work out how to do it with more of them from
it:

-----
  case fldChangedEvent:
  case keyDownEvent:
   handled = FldHandleEvent ((FieldType*)GetObjectPtr(MainPantsField),
eventP);
   DoStuffYouDoWhenFieldHasChanged();
   break;
-----

This way when you call DoStuffYouDoWhenFieldHasChanged(), the field has
already been changed.

Also note that I catch fldChangedEvent as well as keyDownEvent.  This is
because is the user uses the popup keyboard rather than Graffiti, you don't
get keyDownEvents, but when the keyboard is closed you do get the
fldChangedEvent.



Cheers
Russell




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

Reply via email to