> Situation: Have several submenus in a contextualmenu. Some of the > submenu items will be identical in their text. Not within a given > submenu, but in different submenus. > > How does one differentiate between such submenu items? To know which > contextualmenu item had the submenu item returned in the string by > Action? >
When your app creates the context menu, the waits for the user to choose something, and you assign a code number for the choice. Then in the action part of the CM, you can put a case statement for all the code numbers and then do what needs to be done. I do it this way : I have some constants CMcodePrint = 100, CMCodeFile = 200, .... upto 1300 sometimes. Then the submenus are like CMCodePrint, CMCodePrint + 1, CMCodePrint + 2. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
