Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building Menus Programatically...
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00116349
Message ID:
00116352
Views:
26
>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

Bob:
Have you looked at the generated code for a menu? This might help in the order you need to add the pieces to the menu.

HTH
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform