Accessing ContextualMenu menu items (REALbasic getting started Mailinglist archive)
Back to the thread list
Previous thread: RB 2006 compatibility with RB 5.5.5
Next thread: Check box in a list box
| Accessing ContextualMenu menu items |
| Date: 10.05.06 23:01 (Wed, 10 May 2006 15:01:56 -0700) |
| From: Charles Ross |
|
I asked this on the list a few days ago, but as I got no answer, it
may be because I asked within a thread that began differently. Given a ContextualMenu object (which at this point I don't have a choice in using ContextualMenu rather than ConstructContextualMenu), is there any way to access the individual MenuItem objects created with AddRiow? More specifically, I want to add an item to the ContextualMenu object and then set the Checked property of one of them. Thanks, Chuck Ross _______________________________________________ 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> |
| Re: Accessing ContextualMenu menu items |
| Date: 13.05.06 06:23 (Sat, 13 May 2006 07:23:45 +0200) |
| From: Marcel |
|
Hi Chuck!
This seems to be not possible. Popup- and Contextual menus are very limited. But it is quite easy to implement a standard menu as popup or contextual. I declared a second menubar in my project where I gather all contextual menus (this is very handy, because you can use the IDE to design them). In my code I just reference them as MenuItem and open them with Open () on right-clicks or whereever I need them. Before opening I give a reference to an event handler to modify the menu items at will... Best, Marcel On 11.05.2006, at 00:01, Charles Ross wrote: > I asked this on the list a few days ago, but as I got no answer, it > may be because I asked within a thread that began differently. > > Given a ContextualMenu object (which at this point I don't have a > choice in using ContextualMenu rather than > ConstructContextualMenu), is there any way to access the individual > MenuItem objects created with AddRiow? More specifically, I want to > add an item to the ContextualMenu object and then set the Checked > property of one of them. > > Thanks, > Chuck Ross > > _______________________________________________ > 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> _______________________________________________ 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> |
| Re: Accessing ContextualMenu menu items |
| Date: 13.05.06 12:44 (Sat, 13 May 2006 04:44:55 -0700) |
| From: Charles Ross |
|
Marcel,
Thanks for the tip. Unfortunately, the ContextualMenu object I'm working with was designed by someone else, and it would probably take some not-minor reworking to change the ContextualMenu already in use to a normal menu, but I'll keep it in mind for the future. Since it's open source, I'll come back to it later. Thanks, Chuck On May 12, 2006, at 10:23 PM, Marcel wrote: > Hi Chuck! > > This seems to be not possible. Popup- and Contextual menus are very > limited. > But it is quite easy to implement a standard menu as popup or > contextual. I declared a second menubar in my project where I > gather all contextual menus (this is very handy, because you can > use the IDE to design them). > In my code I just reference them as MenuItem and open them with Open > () on right-clicks or whereever I need them. > Before opening I give a reference to an event handler to modify the > menu items at will... > > Best, > Marcel _______________________________________________ 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> |
Links
MBS Realbasic Plugins - Pfarrgemeinde St. Arnulf Nickenich