Results 1 to 5 of 5

Thread: how to create new menu items in runtime?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    how to create new menu items in runtime?

    how to create new menu items in runtime?

  2. #2
    Junior Member
    Join Date
    Jul 2005
    Posts
    26

    Re: how to create new menu items in runtime?

    I dont think you can create NEW menu items at runtime, but you could do an MRU-type thing, wherein the captions and visibility change, but the code does not.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: how to create new menu items in runtime?

    Can you create a whole bunch of "hidden" menu items that you can enable at run time as you need them?

    [edit] - mikewitt - I guess that's what you just suggested!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: how to create new menu items in runtime?

    You need the API's GetMenu, GetSubMenu, and InsertMenuItem. That way you are not limited by the number of invisible menus you create at design time. However, it is not exactly a piece of cake to do, as you then need to subclass to receive the messages from the menus you just created, otherwise they will be useless.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    Re: how to create new menu items in runtime?

    thx, I have solved the problem with VBACCELERATOR menu component (very very goood)

    thx , anyway

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