×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2008
    Location
    India
    Posts
    219

    Post context menu in dialog??

    Is it possible to make a context menu in dialog??

    if it yes plzz tell me how.........i m confused??

    any suggestion would be appreciable??

    thxx and regards,
    Sunil

  2. #2
    Registered User
    Join Date
    Oct 2008
    Location
    India
    Posts
    219

    Question Re: context menu in dialog??

    ok i think it is possible........



    i have use the following code for the context pane........

    TBool selectKeyPressed = ( aType == EEventKey && aKeyEvent.iCode == EKeyOK );
    if ( selectKeyPressed )
    {

    // get the menu bar from the parent of this control.
    CEikMenuBar* parentMenuBar = iEikonEnv->AppUiFactory()->MenuBar();

    // Set the menu bar to the context-sensitive menu bar
    parentMenuBar->SetMenuTitleResourceId(R_CONTEXT_MENU);

    // try to display the context sensitive menu bar
    if (parentMenuBar)
    {
    parentMenuBar->TryDisplayMenuBarL();
    }

    // change the menu bars resource to the normal menu bar so that the left softkey displays
    // the correct menu
    parentMenuBar->SetMenuTitleResourceId(R_OPTIONS_MENU);
    return EKeyWasConsumed;
    }

    it shows the context manu but can't handle the menu item .....control is not in the menu item...........


    any solution plzz.....

Similar Threads

  1. dynemic menu
    By pankaj gupta55 in forum Symbian
    Replies: 1
    Last Post: 2008-09-20, 11:33
  2. Menu in Dialog does not disappear
    By Juggle4Evr1 in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-07-07, 14:25
  3. dynamic menu panes in dialogs
    By esanchis in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-11-28, 16:44
  4. Dialog Menu in 7650 - please advice!
    By eracer in forum Symbian User Interface
    Replies: 2
    Last Post: 2002-06-21, 17:01
  5. Dialog Menu in 7650
    By janneromppanen in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-06-12, 13:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •