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
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
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.....