Robert Moynihan wrote:
[EMAIL PROTECTED] wrote:

I want to put an menu icon on screen. When tap at it, menu will pop up, just like the popping up menu when tapping at the Menu Icon on silkscreen. Can anybody tell me how to do it. Thanks.

Here's one way...

void PostMenuKey(void)
{
   EventType    event;

   event.eType=keyDownEvent;
   event.data.keyDown.chr=vchrMenu;
   event.data.keyDown.modifiers=commandKeyMask;
   EvtAddEventToQueue(&event);
}

I know (on some level) that this isn't a competition, but a simpler
implementation is this:

        void PostMenuKey ()
        {
            EvtEnqueueKey (vchrMenu, 0, commandKeyMask);
        }

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to