Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building Menus Programatically...
Message
De
10/07/1998 17:35:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Building Menus Programatically...
Divers
Thread ID:
00116349
Message ID:
00116349
Vues:
58
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
Fil
Voir

Click here to load this message in the networking platform