Information générale
Catégorie:
Gestionnaire de menu & Menus
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement