Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GENMENUX Problem
Message
From
29/01/2001 11:24:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
GENMENUX Problem
Miscellaneous
Thread ID:
00469744
Message ID:
00469744
Views:
35
I have much of my menu system working now, but am having some odd behavior. I have decided to use a single menu with pads activated and deactivated depending on the current Form on display. This is done with PUBLIC variables:

glOrderForm = .F.
glBrokerForm = .T.

Then in the comment for every pad there is enabling or disabling code:

*:IF glBrokerForm

or

*:IF NOT glOrderForm AND NOT glBrokerForm

So the actual menu has several pads ... about 10 so far. One pad is never deactivated, the Exit pad which calls Quit. This is accessible from all areas of the program.

When the Broker Form is active, only the Broker pad and the Exit pad show ... BUT (big BUT again <g>!) what happens is that the Exit pad appears with the name Utilities which is the name of the pad immediately before it in the whole menu. It _is_ the Exit pad, only the name has been changed to confuse the innocent.

Any suggestions? The moral equivalent of a THISMENU.REFRESH() would be nice <g>!

..Dave..
Next
Reply
Map
View

Click here to load this message in the networking platform