Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using PUSH MENU _msysmenu?
Message
 
To
22/10/1997 12:21:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00056060
Message ID:
00056085
Views:
59
>I have coded a program in vfp50. The menu system
>has two items and they are:
>FILE EDIT
>Is there a way to turn off one of these items?
>Example: run code and get the menu to look like..
>EDIT

Robert,

You were on the right track.

Try this:

PUSH MENU _MSYSMENU
RELEASE PAD _MFILE OF _MSYSMENU

The File menu is now gone. Now when you want to restore the original:

POP MENU _MSYSMENU

FoxPro maintains its menu in what's referred to as a LIFO stack (Last In, First Out). The beauty of this is that it requires very little additional code (and certainly no special menu generators). The only problem might be in making sure that the PUSHes/POPS match up. You can use

SET SYSMENU TO DEFAULT

to restore the default configuration if there's a problem.

HTH,

George
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform