Thanks, It seems more simple that polling. I'll give it a try. Ron
----- Original Message ----- From: "Russell K Bulmer" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Friday, March 08, 2002 10:58 AM Subject: Change Event > >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/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
