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
Dialog Menu in 7650 - please advice!
2002-06-19, 11:33#2
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
RE: Dialog Menu in 7650 - please advice!
2002-06-21, 17:01#3
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: