Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User sunil304047's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    219
    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 sunil304047's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    219
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved