Dynamic Menus with Events

  • Thread starter Thread starter Stan Smith
  • Start date Start date
S

Stan Smith

Is there a way to create dynamic menus and create dynamic events associated
with those menus? I would like to create a menu system based on the
contents of a text file. When the menu item is selected it will execute a
routine whose name will also appear in the text file.

Thanks.

Stan

Stan Smith
ADS Programming Services
2320 Highland Avenue South
Suite 290
Birmingham, AL 35205
205-222-1661
ssmith.at.adsprogramming.com
 
Stan Smith said:
Is there a way to create dynamic menus and create dynamic events
associated with those menus? I would like to create a menu system based
on the contents of a text file. When the menu item is selected it will
execute a routine whose name will also appear in the text file.

Check out the 'MainMenu' and 'MenuItem' classes, the 'AddHandler and
'RemoveHandler' statements and the 'CallByName' function.
 
Check out the 'MainMenu' and 'MenuItem' classes, the 'AddHandler and
'RemoveHandler' statements and the 'CallByName' function.

Herfried,

Perfect! Thanks!

I haven't done much event based programming and I was making it a lot more
difficult than it needed to be. Thanks to your suggestion I found the
overloaded method that let me add a handler to the MenuItems.Add method.

I've been told that it isn't necessary to say thanks when someone answers
your question on a newsgroup and that it's even recommended that you don't
since it uses up bandwidth unnecessarily. So I'll just say thanks this once
for the help that you've provided me this time and the help that you will
undoubtedly provide in the future. I've read a number of your responses to
other posts and they've saved me a considerable amount of time.

Regards,

Stan

Stan Smith
ACT! Certified Consultant
ADS Programming Services
2320 Highland Avenue South
Suite 290
Birmingham, AL 35205
205-222-1661
www.adsprogramming.com
ssmith_at_adsprogramming.com

See what 40 Crystal Reports can do for ACT! 6 at
www.crystalclearreports.com
 
Stan,

Stan Smith said:
I've been told that it isn't necessary to say thanks when someone answers
your question on a newsgroup and that it's even recommended that you don't
since it uses up bandwidth unnecessarily.

I am glad you could solve the problem. It's always nice to hear some
feedback and a thank you. Otherwise it seems that the OP didn't read the
reply.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top