Here is the method Palmsource wants you to use:
http://www.palmos.com/dev/support/docs/palmos/UserInterface.html#981702
Another way that they don't want you to use is to just check the visibility of the menu in the menu structure:
Boolean bMenuIsVisible; MenuBarPtr pMenu; pMenu = MenuGetActiveMenu(); bMenuIsVisible = pMenu->attr.visible;
This "older" method seemed a lot more straightforward to me. :) But it breaks the Palmsource rules and accesses a structure's internal workings. Does anyone know if this kind of thing can even still be done in the OS 5 SDK?
If you don't want to use the window enter/exit events for some reason, then you can check to see if the active window is the same as the active form's window. If not, then there's probably something obscuring your form. I wound up having to use this technique for 68K FEPs running on Palm OS 5.
-- Ken -- Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
