Can anybody tell me how to create a "complete tree" of a menu, on run-time. I mean, I have a mnuItem(0), and can load diferent mnuItem(X)... but how can I create different levels of menues and how do I set its parent?
Printable View
Can anybody tell me how to create a "complete tree" of a menu, on run-time. I mean, I have a mnuItem(0), and can load diferent mnuItem(X)... but how can I create different levels of menues and how do I set its parent?
You can't do that. VB simply doesn't support this. You can come close, but it will still have alot of limitations.
The only way I know it can be done, it to take over the creation of the menues. Create the menu bar, and then add on the menuitems using API calls.
You would however need a good stable subclasser to do this.