Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Pad tied to a Form...
Message
 
 
To
13/10/1998 10:29:53
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00146003
Message ID:
00146268
Views:
27
Another thing you can do (if you dont want to use a menu object) is to put the code to define (and show) the menu pad in the activate of the form and the code to release the menu pad in the deactivate of the form. You could build a menu from the menu designer, generate it, and cut out the part that defines the pad and it elements -thereby taking advantage of the tools.


>>Hi Bob,
>>
>>I am not a MM user but I am familiar with Codebook < g >.
>>
>>cBizObj has a cMenuPad property that during the Init() of the bizobj, something like the following code is executed:
>>
>>
>>IF !EMPTY(this.cMenuPad) AND TYPE("goApp.oMenu")="O" AND !ISNULL(goApp.oMenu)
>>   =EVAL("goApp.oMenu."+this.cMenuPad+".Show()")
>>ENDIF
>>
>
>Yes... I actually found this after I posted the question... it seems to do what I am looking for, although I have yet to try it since I HATE creating CodeBook menu classes... wish someone would create a builder that worked.
>
>BOb
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Reply
Map
View

Click here to load this message in the networking platform