Hi,
I want to disable the menu during certain processing. I added the following
code to the main form's event handler, but it doesn't quite seem to do it.
The disabledMenu variable is set to true during the times that I want to
disable the menu. Is this the correct approach and I'm missing certain
events? Or is there a better way to disable the menus?
Thanks.
YC.
switch(eventP->eType)
{
case menuCmdBarOpenEvent:
case menuOpenEvent:
case menuCloseEvent:
case frmTitleEnterEvent:
case frmTitleSelectEvent:
if(disableMenu) // disable menu if set to true
handled = true;
break;
.... other event handlers ....
return handled;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/