When MSK’s command id is set to EaknSoftkeyContextOptions
and
label to text_softkey_option
(the label will be shown
in case there is something wrong with icon creation, for example in out of
memory condition), a context specific options menu will be launched (if set)
by pressing MSK. Before MSK is set, the context specific options menu resource
should be set by using CEikMenuBar’s void SetContextMenuTitleResourceId(TInt
aMenuTitleResourceId).
In normal cases the Uikon / Avkon framework will then automatically launch this context menu, but for special cases there is also the CEikMenuBar method for manually displaying the context menu:
void TryDisplayContextMenuBarL()
Otherwise the context menu works exactly like a normal options menu.
This means, for example, that DynInitMenuPaneL
can be
used to alter the menu context (the application just needs to check the menu’s
resource id for making a difference between normal and context menus).
For more information, see: