adding menu item dynamically

Login to reply to this topic.
Mon, 2005-08-08 02:42
Joined: 2005-06-24
Forum posts: 63
is there anyone there who knows how to add menu items dynamically? i.e. depending on the number of user input ...
please if anyone knows.....thanks in advance!

Mon, 2005-08-08 03:59
Joined: 2003-04-01
Forum posts: 142
Re: adding menu item dynamically
in your DynInitMenuPaneL, you could try something like this:

CEikMenuPaneItem::SData data;
data.iText = KTxtMyCommandText;      
data.iCommandId = EMyCommandID
data.iCascadeId=0;
data.iFlags=0;
data.iExtraText=KNullDesC;
aMenuPane->AddMenuItemL(data);

yucca
Wed, 2005-08-10 01:01
Joined: 2005-06-24
Forum posts: 63
Re: adding menu item dynamically
ive made it already! thanks yucca! ei, yucca is it also possible to add icon on the menu item? how?
Wed, 2005-08-10 03:57
Joined: 2003-04-01
Forum posts: 142
Re: adding menu item dynamically
check the functions provided by CEikMenuPaneItem, there seems to be something about icons there. anyway, if I remember right there was some issues with some phone models, so check it out, and see if it works.

yucca
Thu, 2005-12-29 06:21
Joined: 2005-12-28
Forum posts: 4
Re: adding menu item dynamically
Hi Yucca,

My buffer to be added to the menu pane is dynamic and is more than 40 characters length. Iam having this text in HBufC *poString.

If I can set this text in iExtraText, then i can use EnableMarqueL to make it completely visible to user.

How can i use this iExtraText.
Please help me on this
-Boumitran
  • Login to reply to this topic.