On Nov 30, 2006, at 6:33 PM, Rubber Chicken Software Co. wrote:
At 05:02 PM 11/30/2006, you wrote:
I'd suggest not using menu arrays. Creating new MenuItem instances
works a lot better.
OK, makes sense - i don't mean to ask, but I don't quite get how
that approach works, could you guide me through it?
I want to make a fairly complex tree; say four levels deep with
nested submenus, some go all the way to the fourth level, some
don't. This can be used as a MenuBar thing or as a ContextualMenu
(opened by ConstructContextualMenu).
I assume you advise against building this in the IDE, you are
suggesting coding it out?
Constructing a Menu Tree using new MenuItem instances seemed
reasonable, but one thing I don't understand is how you link up
code to the events.
Dim m As New MenuItem
base.Append m
OK, so, wonderful, so how do you set up an Event that has code?
Write a MenuItem subclass in which you implement the Action and
EnableMenu event handlers.
Charles Yeomans
_______________________________________________
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>