On Sep 2, 2006, at 4:28 PM, Craig Hoyt wrote:

I've exhausted my three brain cells trying to figure this out, so can someone point me in the right direction???

I have a menuitem that has a submenu. This submenu has two menuitems in it, one is just a separator (so far all menus built in IDE). At runtime I scan a folder for items and append the file names starting at the third menuitem in the submenu. So far so good...

How the heck do I check and uncheck these items and how do I get an menu event when they are selected? What should I be doing when I create the menuitem to be able to have access to each item? I must be missing something obvious!

One way is to use a MenuItem subclass for the items appended at runtime in which the Action and EnableMenu events are implemented. Also, you can add menu handlers for items that don't exist at compile time. Then when you add a menu item, you can set the name property; when this item is chosen, it will find the menu handler.

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>

Reply via email to