Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Building Menus Programatically...
Ok... in preperation for creating our data driven menus, I have been trying to programatically create the menus.. I have been issuing commands while my ap is suspending... here is what I have done so far, maybe you can help me along, or recomend another approach...
1. Create a calls called aMenu which is a subclass of cMenu
2. Set my application class cMainMenuClass to aMenu
3. Run the app... (so far so good) Hey, no debug menu..? Seems it is addeded in one of the menu pads children..
Ok... so, I have a menu... The first step is to create a pad...
goApp.oMenu.Add('BobPad','cpad')
So far so good... now, to add a popup...
goApp.oMenu.BobPad.oPopup.Add('BobPopup','cpopup')
I get a message... must provide more paramaters or something.
But, I think the above is to add bars to the popup... so, how do I create the popup for BobPad? Or is it done when I create the pad, and I am just not assigning it a name?
BOb
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement