Looks like with this solution you end up polling the field after processing 
the keyDownEvent and setting your flag. So why not just use FldDirty() in 
the polling?

Matt

At 09:46 AM 8/3/2002 -0500, you wrote:
>On Fri, 8 Mar 2002, Pascal Levy wrote:
>
> > I dont't think something like that exists, but you can catch the
> > keyDownEvent in your form handler, get the field that as the focus at
> > this time using FrmGetFocus, and suppose that this field has changed.
>
>I've run into this problem, too, and fixed it.  When you catch the keyDown
>event, you get it before the field does so the field hasn't changed yet.
>What I ended up doing was setting a flag, and then looking for that flag
>in my event loop before handing off the current event to be processed so I
>could do whatever I needed to do if a field had changed.
>
>Of course, you'll need to specify a timeout for EvtGetEvent so you'll get
>nil events when nothing's happening.  if you don't do that, your app won't
>act on a field change until the next event that comes down after the
>keyDown :-)


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

Reply via email to