Results 1 to 5 of 5

Thread: How to Add menu items?

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Texas
    Posts
    56

    Question

    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!

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Texas
    Posts
    56
    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?

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Texas
    Posts
    56
    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!

  5. #5
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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
  •  



Click Here to Expand Forum to Full Width