×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    42

    RE: Dialog Menu in 7650 - please advice!

    I did need to do it, this what I found.

    Derive a MyDialog from class CAknDialog
    Call ConstructL( menueresourceId) for instance in MyDialog::PostLayoutDynInitL().
    In MyDialog::OkToExitL() you call DisplayMenuL() for your EAknSoftkeyOptions command.
    You can do whatever you want in MyDialog::DynInitMenuPaneL() to dynamically hide lines depending on what happened in the dialog.

    Etienne

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    19

    Dialog Menu in 7650 - please advice!

    Hi,

    I still need help with this matter - I'm sure it's trivial for a person who has done this previously. I'd really appreciate helping me out because this thing functions currently as a barrier for my work.

    I've tried all kinds of this in DynInitMenuPaneL and also to operate on iMenuBar member variable without result. I am using CAknDialog and would like to know what is the normal way to define a menu for a dialog in Avkon and how to catch the messages. Attached find my previous message.

    Please help.

    Sincerely,
    Janne
    -------------------------------------------------------------------------------
    What is the easiest (normal) way to get a popout menu for a dialog in 7650?
    For example, if I had defined buttons R_AVKON_SOFTKEYS_OPTIONS_BACK for a
    dialog, how do I attach menu/menu functionality when the "Options" button is
    pressed.

    Thank you for your help in advance!

    Janne

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    Tampere, Finland
    Posts
    29

    RE: Dialog Menu in 7650 - please advice!

    If you have defined buttons R_AVKON_SOFTKEYS_OPTIONS_BACK for a dialog, you can add/remove options menu items in DynItitMenuPaneL function of your dialog class.

    To attach a menu to your dialog use ConstructL parameter, like:

    CMyDialog::ConstructL()
    {
    CAknDialog::ConstructL( R_MY_OPTIONS_MENU );
    }

    where R_MY_OPTIONS_MENU is defined in your resource file as

    RESOURCE MENU_BAR r_my_options_menu
    {
    titles=
    {
    MENU_TITLE
    {
    menu_pane=r_my_menupane;
    txt="";
    }
    };
    }

    RESOURCE MENU_PANE r_my_menupane
    {
    items=
    {
    MENU_ITEM {command=EMyCommand; txt="My Command"; }
    };
    }

Posting Permissions

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