Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building Menus Programatically...
Message
From
10/07/1998 17:35:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Building Menus Programatically...
Miscellaneous
Thread ID:
00116349
Message ID:
00116349
Views:
59
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
Next
Reply
Map
View

Click here to load this message in the networking platform