Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Menu in dialog form

0 replies · 1,539 views · Started 22 August 2006

Hi..all

I m trying to create menu in dialog form..for that

in dialog.cpp

Quote:
void CformappDialog:: DynInitMenuPaneL(
TInt aResourceId,
CEikMenuPane* aMenuPane )
{
TInt pageId = ActivePageId();
TInt focusControlId = IdOfFocusControl();

if (aResourceId == R_AVKON_FORM_MENUPANE)
{
switch (pageId)
{
case EformappPageCtrlIdPagePhone1:
{
//Phone Menu
switch (focusControlId)
{
case EformappDlgCtrlIdPhone1:
{
//Menu for Phone-1 and Phone-2 numbers
aMenuPane->AddMenuItemsL(R_PHONE_MENU_PANE,0,1);

break;
}
}
}
}
}
else
{
CAknForm:: DynInitMenuPaneL(aResourceId, aMenuPane);
}

}

in .rss file

Quote:
RESOURCE MENU_PANE r_phone_menu_pane
{
items=
{
MENU_ITEM
{
command = EformappDone;
txt = "Done";
},
MENU_ITEM
{
command = EformappReset;
txt = "Reset";
}
};
}

i have changed buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK; in DIALOG resource. But as output I only find OPTIONS and no submenus!!

Kindly help!
Meetee