I want to perform a task (display-based), which requires the main menu of a form is not opened. How can I find out programatically if the menu is opened at a certain moment?
Dan,
Going into a menu generates the winExitEvent / winEnterEvent pair just like moving to any other form. One way is to tap into the event flow in your app to keep track of these event pairs, and set a flag when a menu is entered.
http://www.palmos.com/dev/support/docs/palmos/UserInterface.html#981702
Another way is to tap into keyDownEvents, and wait until a vchrMenu or vchrCommand event is generated -- this means a menu has become active. See
http://www.palmos.com/dev/support/docs/palmos/Menu.html#1049031
-Jeff Ishaq
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
