A very good question! The best way to handle this is to create your own "event" queue and post a custom event when you add an event to this queue. In your main form loop, when you receive this custom event you should retrieve the BT event from your custom queue. Also in your main event loop, you should poll your custom queue when you receive a winEnter event, in case you missed your custom event while another window was open.
Hi Peter,
thanks for the info. I think I'll do it like that (as i've been reading that a custom event queue is also safer in not losing so much events :-)).
But I came up with another idea, and I am curious if that would also be a way:
I could check my custom events in my AppHandleEvent() function before they get dispatched with FrmDispatchEvent() to the active forms event handler. Then I could check for active form and do things according to which form is active. Would that work?
Anyway, I'm off creating my custom event queue (altough I must say it's a bit of a bad design in Palm OS events handling, if I have to create my custom queue to get things working the best way. No offense meant, though, please don't flame me :-))
Bye, Jan
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
