Sorry, but I prefer an old-fashioned exitWindow trap: you just analyze where it goes from and where it arrives ... Works well for me.
I actually came across a more tough situation when you have a network or IR connection: your peer keeps sending you data, while you have a menu or another form on. In this case you need to accumulate the data and referesh the window once it regains the control - your hack doesn't work this time, given that some forms don't take full screen :=) BTW there is a problem (PalmOS bug ?) with FrmReturnToForm after FromPopUpForm: to me it is logical to send enterWindow to the the destinator, but no message is sent! This is where I need a patch, by setting a particular flag. On the contrary, FrmGoToForm does send a notification. Michael -----Original Message----- From: Evan Wise [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 November 2001 12:57 To: Palm Developer Forum Subject: Re: screen refreshig messes up menu when selected <throwing in my .02$> I have a rather hackish way of detecting a menu: look at the window bounds of the active window. If you know that your regular window is 160x160 (yeah, not a guarantee; that's why this is a hack! ;) ) delay the update. psuedo code: -get active window bounds -usual event loop -if not delay or delay and not an update -FrmDispatchForm( ) -if active window proper sized kill delay Put this code in your event loop and delay all updates (frmUpdateEvent and the like) until you get back to the window size that tells you where you are. I have found this works with popup lists and menus (in all ways of popping up) with no problems. E/. ________________________________________________________ This message sent using the Infowave Wireless Business Engine(tm) Evan Wise Sprite Herder infowave E: [EMAIL PROTECTED] T: 604 473 3779 F: 604 473 3633 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
