- Dynamic menue (CrossPost)
- Posted by dllhell on December 11th, 2003
I need help with dynamic menues.
I have some menues created in standard way (menu editor in VB). There are
few root menues and
in one of them I need to dynamicly create unknown number of submenues.
For each "Created" I have 2 Known menues and for each of "Known 2" I have to
create one level
of menues with unknown elements.
| root
|
----sub menu 1
|
----sub menu 2
|
|---------------|----Created 1
| |----Known1
| |----Known2
| |----a1
| |----an
|
|---------------|----Created 2
| |----Known1
| |----Known2
|
| |----Created n
|
|----sub menu 3
I know how to create menues but don't know how to asign submenue to his
parent
and how to do this for EACH parent.
Also, I have some classes wich provide that but by using them It's
impossible to
combine old menues with menues created by those classes.
I'm desperate and need fast help.
Sorry because of my English.
Best regards
- Posted by Word Heretic on December 11th, 2003
G'day "dllhell" <dllhell@net.hr>,
take the parent and add a popup control to it. This is your submenu.
"dllhell" <dllhell@net.hr> was spinning this yarn:
Steve Hudson
Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com
If my answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
- Posted by dllhell on December 11th, 2003
I'm sorry if I ask a stupidity but, what do you mean?
I tried before to use parent property with menu items but no results...
Coud you post this line of code please?
- Posted by Word Heretic on December 13th, 2003
G'day "dllhell" <dllhell@net.hr>,
the parent is a commandbar that you must know else you couldnt place
the children???
Thus you add to that object to link your child in... you cant have a
parent if you havent linked it in / created it yet...
CommandBars("Menu Bar")....
"dllhell" <dllhell@net.hr> was spinning this yarn:
Steve Hudson
Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com
If my answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.