Greetings,

My app does lots of time-consuming drawing in the background, so I need 
to be able to stop drawing to the screen when, for instance, a user 
brings up a menu or dialog, and start again when it goes away. I'm using 
the winEnterEvent/winExitEvent method detailed in a knowledge base 
article (http://oasis.palm.com/dev/kb/article.cfm?id=1209), but it 
doesn't work for dialogs in many cases, because they have their own event 
loops, so they receive (and ignore) the winExitEvents that should go to 
the form that's being exited.

I found a note about this in the archives, but with no real advice about 
how to handle it, other than to say that you shouldn't really care if 
another form is popped up over yours: there's probably a better way. If 
there's another way to do what I need to do (determine whether it's safe 
to draw to the screen) them I'm all ears. Maybe I can just compare the 
current DrawWindow with my form's window? Ick.

I suppose I could have my dialog event loops handle winExitEvents by 
handing them over the the correct form's evem handler. That should work 
OK, but sure seems bass-ackwards to me.

Any advice on this would be greatly appreciated.

Dave Johnson

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

Reply via email to