My application gets data items (names) from sever dynamically, recevies more than 50 data items.Data is added to menu items. When the user clicks on the particular item it performs certain operation.
For single item
itemOne.iCommandId = EDemoOne;
itemOne.iCascadeId = 0;
itemOne.iFlags = 0;
itemOne.iText = bufOne;
Using CEikMenuPane::CItemArray how to add items dynamically?
How to assign CommandID to the menu item at runtime and click events (handle command like) for that item?
Thanx in advance.
Last edited by marvik_34; 2006-11-13 at 09:16.
How to handle menu items displayed dynamically?
Thankyou for replay. This code snippet is for one item. I want to wright a code for more than 50 items. When each item clicked it performs asynchronous operations
How to wright a code using CEikMenuPane::CItemArray to display item dynamically? How to assign the iCommandIDs to these items dynamically? Bit wired up, help me.
Have you heard about loops?
Some examples: "for" "while" "do...while"
You can assign iCommandId-s based on the highest ID you use in your static menu structure (actually starting with "EHighestID+1" to avoid duplication).