|
-
Mar 20th, 2001, 10:20 PM
#1
Thread Starter
Member
Does anyone out there know how to add items to a form's menu at runtime? I'm trying to add a most recently used file list to a MDI project. For the likes of me I haven't been able to figure out how to add new items to the menu at run time. If anyone can point me in the right direction I would be most appricaitive. Thanks!
-
Mar 20th, 2001, 10:21 PM
#2
PowerPoster
Basically, you have to create a control array. Where every you want your dynamic menu items to occur, set the index to zero to the item right about where you want the runtime menu item to go. Then simply use the Load Function
-
Mar 20th, 2001, 10:59 PM
#3
Thread Starter
Member
Lethal, Thanks for responding. I'm a little confused about creating the control array and adding it to a menu. By chance do you have a code example?
-
Mar 20th, 2001, 11:39 PM
#4
Thread Starter
Member
I poked around a little more in help under 'control arrays' and now have it working great. Thanks for your help pointing me in the right direction!
-
Mar 20th, 2001, 11:41 PM
#5
PowerPoster
Oops..sorry, didn't see your last post about needing an example. Any other probs, let me know if I can help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|