| Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 | 1. Dynamically changing POPUP Menu Items #13291 | I can't seem to figure out how to dynamically change items in a popup menu. When i try to add an item to an existing heading , using the guiaddmenu statement adds it to the menu bar instead of my popup menu. What I am trying to do is tailor my popup menu, triggered by rightclicking on my tree item, based on the tree item itself. Chuck Simmons | 2. It would be much easier if you could give an example that we could "play" with #13292 Posted by: Michael S 2010-03-30 00:27:09 Last edited by: Michael S 2010-03-30 01:26:23 (Total edited 1 time) | Try giving an example of the code you're using along with an explanation of what you're expecting/hoping to see and what you're ACTUALLY seeing ? | 3. #13293 | I have attched a modifired version of Jeffs tetsmenu.rex. What I am trying to do is dynamically add a header at position 3 in the menu. The menu is already defined at the top of the script. The GuiAddMenu works fine if you are using a menu structyire that is in the bar at the top of the window. But I canhnot figure out how to use it for popup windows. As you can see from running the script, when the guiaddmenu statement executes, it add a new header to the menu bar instead of adding it to the popup menu. To add the header, click the "Add Heading 3" button. Chuck Simmons | 4. #13294 | You can't add an item to an already open popup menu (as opposed to a normal menu). You'll need separate menu definitions. | 5. #13295 Posted by: chucksim 2010-03-30 09:29:13 Last edited by: chucksim 2010-03-30 09:30:06 (Total edited 1 time) | Ah, ok. It turns out I only need two different menus anyway. So I can toggle between the two as needed. Thanks. Chuck Simmons | Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 |
|
|