Thanks Steven for the reply. I know I was a bit cloudy in my description of the problem. I already have the menu and submenu constructed. In fact the first two menuitems in the submenu are have also been created-all in the IDE. I'm only adding (appending) items to this submenu during runtime and I need to know how to handle the events generated by the newly added items when a user attempts to select one.

Craig

Message: 12
Subject: RE: Menus built on the fly help
From: "Steven Hedgepeth" <[EMAIL PROTECTED]>
Date: Sun,  3 Sep 2006 00:49:13 -0400 (EDT)


I'm just an ignew (ignorant newbie or modern igloo) and I'm having difficulty attempting to understand what you are trying to do but it sounds like you are wanting to write code to put in a submenu item's event editor to respond to a mouse click on the submenu item. If that is the case, show the code editor for the window that has the menu. On the bar immediately above the code editor there are several buttons, one of which says "Add Menu Handler." Click on it and you will be presented with a combobox that lists the submenu items that you have created. If you haven't created any menuitems, the combobox will be empty. Select the submenu item that you want to write code for and a code editor for that menuitem is automatically created. Now write code for that submenu item's event in its code editor. If, however, you already know how to do that but instead you are attempting to write code that allows you to create submenus at runtime, I don't know how to do that but I would think it would involve creating a menuitem class and using the menuitem's properties and methods to create submenus "on the fly." I'm not certain but I think it goes something like this:

dim mySubMenuItem as MenuItem
mySubMenuItem = new MenuItem

Check the Language Reference as to how it is done correctly or hope that someone with more experience might help.
Sincerely,
Steven Hedgepeth
P.S. Just be thankful you have three brain cells.


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!

***************


_______________________________________________
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