Hi Jan, 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.
Regards, Peter http://www.whizoo.com Contractor for hire (PalmSource Certified Developer) Source code available for all apps!! BtSerial Pro - Serial Port Client for the Palm OS BtSerial - Bluetooth Serial Port Client for the Palm OS BtServer - Bluetooth Serial Port Server for the Palm OS Net Sync - Programmatically manipulate network settings RegCode - Add registration code support to your app "Jan Bandouch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, I use some custom events I generate and queue during bluetooth callbacks. As these callbacks are asynchronous, it is possible that I have now another form active (with another EventHandler-function) that I don't want to handle the event. But if I don't handle it, it will get lost, won't it? How can I manage it that my custom events all go to a specified forms event handler? I could always create new custom events in the other forms event handler, but that seems stupid! The goal is to draw a bitmap on a specific form, and I need to get sure it is the right form it draws on. Thanks, Jan (followup-to palm-dev-forum) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
