On Sep 3, 2006, at 12:00 PM, Craig Hoyt wrote:
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.
Create the first instance of your submenu and give it an index of 0
(i.e. myMenu(0)
then
dim m AS myMenu
dim i AS integer
For i = 1 to howMany
m = NEW myMenu
m.Title = "This is my Menu"
next
Then in your menu handler for myMenu, you will need to find what
index is passed, which will tell you which menu item was selected,
and react accordingly.
Roger M. Clary
Class One Software
http://www.classonesoftware.com
[EMAIL PROTECTED]
_______________________________________________
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>