General information
Category:
Menus & Menu designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only