Renaming menu item

Login to reply to this topic.
Wed, 2004-12-01 23:19
Joined: 2004-11-24
Forum posts: 2
In my application I accept a name, and I need to rename an existing menu item with this name.please let me know how to do this.

Thanks
Anil

Fri, 2004-12-03 00:40
Joined: 2004-02-05
Forum posts: 176
Renaming menu item
You will need to override DynInitMenuPaneL in your AppUi class.  DynInitMenuPaneL is called by the Symbian Framework before the menu pane is activated


Code:
void CYourAppUi::DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane)
{
if (R_YOUR_MENU  == aMenuId)
{
_LIT(KChangedText,"NewMenuText");
aMenuPane->SetItemTextL(EYourMenuItemID,KChangedText);
}
}

  • Login to reply to this topic.