dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Dynamic Menus

  1. #1
    ZhiD Guest

    Dynamic Menus


    I am curious about how i can create a dynamic menu. i am reading in a file
    and creating the menu based upon the file details, but i can't seem to add
    items during run time. any helps is appreciated thanks.

    Zhi

  2. #2
    Michael Culley Guest

    Re: Dynamic Menus

    VBs a bit limited here. You have to create a menu with an index of 0. Then
    you can use Load mnuTest(1), Load mnuTest(2) to create new menus.

    --
    Michael Culley
    www.vbdotcom.com



    "ZhiD" <caball88@aol.com> wrote in message news:3c83e543$1@10.1.10.29...
    >
    > I am curious about how i can create a dynamic menu. i am reading in a file
    > and creating the menu based upon the file details, but i can't seem to add
    > items during run time. any helps is appreciated thanks.
    >
    > Zhi




  3. #3
    Mark Alexander Bertenshaw Guest

    Re: Dynamic Menus


    "ZhiD" <caball88@aol.com> wrote:
    >
    >I am curious about how i can create a dynamic menu. i am reading in a file
    >and creating the menu based upon the file details, but i can't seem to add
    >items during run time. any helps is appreciated thanks.
    >
    >Zhi


    Zhi -

    I posted something about this a couple of weeks ago. Unfortunately, I seem
    to be unable to search the newsgroups on DevX any more. When I get back
    home, I could probably repost it if you want.

    --
    Mark Alexander Bertenshaw
    Programmer/Analyst
    Chordiant Software, Inc.
    Brentford
    UK

  4. #4
    alkemy_ Guest

    Re: Dynamic Menus

    I asked this question a couple of weeks ago.

    To be able to use truly dynamic menus entails API calls. Otherwise you have
    ot have a menu decared in the menu editor at design time and load/unload
    menus into an array. The drawback to this is you cannot traverse these menu
    items to add sub menus.

    Ken Halter pointed me towards some controls that are useful to look at
    using API calls and subclassing. These posts are on the
    microsoft.public.vb.general.discussion group on msnews.microsoft.com


    You can see these controls/code @

    Using the cNewMenu DLL to Create Start Menu/ICQ Style Pop-up Menus
    http://vbaccelerator.com/codelib/cpopmenu/icqmenu.htm

    Icons In Menus 2 - Create Unlimited Popup Menus
    http://vbaccelerator.com/codelib/cpopmenu/cnewmenu.htm

    Mike

    "ZhiD" <caball88@aol.com> wrote in message news:3c83e543$1@10.1.10.29...
    >
    > I am curious about how i can create a dynamic menu. i am reading in a file
    > and creating the menu based upon the file details, but i can't seem to add
    > items during run time. any helps is appreciated thanks.
    >
    > Zhi




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center