Guidance Forums / Reginald Rexx / Dynamically changing POPUP Menu Items

Search 搜索
Home Home

Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Dynamically changing POPUP Menu Items
Posted by: chucksim 2010-03-29 22:58:47
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
Message2. It would be much easier if you could give an example that we could "play" with
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 ?
Posted by: chucksim 2010-03-30 02:00:01
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
Posted by: Jeff Glatt 2010-03-30 08:53:23
You can't add an item to an already open popup menu (as opposed to a normal menu). You'll need separate menu definitions.
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 • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
© Sun 2024-5-19  Guidance Laboratory Inc. Hits:0