Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GENMENUX Problem
Message
De
29/01/2001 11:24:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
GENMENUX Problem
Divers
Thread ID:
00469744
Message ID:
00469744
Vues:
36
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..
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform