I need to programatically open the menu. I found that neither
MenuSetActiveMenu() or FrmSetMenu() actually draw the menu on the
screen, so I had to resort to the following hack:
void openMenu()
{
EventType event;
Word err;
event.eType = keyDownEvent;
event.data.keyDown.chr = vchrMenu;
event.data.keyDown.keyCode = 0;
event.data.keyDown.modifiers = 0;
MenuHandleEvent(0, &event, &err);
}
It seems to work OK. Is this the proper way?
Thanks!
- Ioi
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/