Dynamic Menus With Submenus


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Dynamic Menus With Submenus

  1. #1
    alkemy_ Guest

    Dynamic Menus With Submenus

    I am trying to build menus with submenus dynamically. The index and captions
    would be read in from a table that holds the information. The problem is
    with the sub menus. I keep on getting an error asking for an array.



  2. #2
    Mark Alexander Bertenshaw Guest

    Re: Dynamic Menus With Submenus


    "alkemy_" <alkemy_@hotmail.com> wrote in message news:3c73fa4c@10.1.10.29...
    > I am trying to build menus with submenus dynamically. The index and

    captions
    > would be read in from a table that holds the information. The problem is
    > with the sub menus. I keep on getting an error asking for an array.
    >
    >


    alkemy -

    Can you please post your code. Telepathy is not part of my skillset.

    Thanks,

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



  3. #3
    Larry Rebich Guest

    Re: Dynamic Menus With Submenus

    Can't be done. But someone will prove me wrong...

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips

    Please:
    No personal e-mail questions :-)


    "alkemy_" <alkemy_@hotmail.com> wrote in message news:3c73fa4c@10.1.10.29...
    > I am trying to build menus with submenus dynamically. The index and

    captions
    > would be read in from a table that holds the information. The problem is
    > with the sub menus. I keep on getting an error asking for an array.
    >
    >




  4. #4
    alkemy_ Guest

    Re: Dynamic Menus With Submenus

    Thanks....I've been working on it and all the information I've seen leads me
    to the same conclusion.

    Mike
    "Larry Rebich" <lrebich@earthlink.net> wrote in message
    news:3c745d55@10.1.10.29...
    > Can't be done. But someone will prove me wrong...
    >
    > Cheers,
    > Larry Rebich
    >
    > More tips link to:
    > http://www.buygold.net/tips
    >
    > Please:
    > No personal e-mail questions :-)
    >
    >
    > "alkemy_" <alkemy_@hotmail.com> wrote in message

    news:3c73fa4c@10.1.10.29...
    > > I am trying to build menus with submenus dynamically. The index and

    > captions
    > > would be read in from a table that holds the information. The problem is
    > > with the sub menus. I keep on getting an error asking for an array.
    > >
    > >

    >
    >




  5. #5
    Mark Alexander Bertenshaw Guest

    Re: Dynamic Menus With Submenus


    "Larry Rebich" <lrebich@earthlink.net> wrote:

    >"alkemy_" <alkemy_@hotmail.com> wrote in message news:3c73fa4c@10.1.10.29...
    >> I am trying to build menus with submenus dynamically. The index and

    >captions
    >> would be read in from a table that holds the information. The problem

    is
    >> with the sub menus. I keep on getting an error asking for an array.

    >
    >Can't be done. But someone will prove me wrong...
    >
    >Cheers,
    >Larry Rebich


    Larry -

    In theory, it could be done. Create a whole load (say 10) top level menus
    with the names "mnuTopLevel1", "mnuTopLevel2", "mnuTopLevel3", etc. and ensure
    that they are all set to Visible=False. Add one popup menu item below each
    e.g. "mnuPopup1", and give that the index 0.

    Subsequently, whenever you need a new top level menu, Load() additional items
    into the menu array, give them captions, set the caption of the top level
    menu item, and finally make it visible.
    To delete whole menus, Unload() all extraneous items, and set the top level
    item to Visible = False.

    What do you think?

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


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