Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Bars
Message
From
19/12/1998 22:05:12
 
 
To
19/12/1998 21:07:02
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Title:
Miscellaneous
Thread ID:
00169174
Message ID:
00169181
Views:
21
>How do you selectively disable menu bars from a form?
>
Raymond,

You generally cannot disable a menu bar from a form without a lot of trouble. What you do instead is make use of the menu's "skip for" attribute and identify the condition that may appear on the form that would cause the menu bar to be disabled.

For example, if you want a bar to be disabled if a specific form's control value is false, then the skip for would contain something like

"_Screen.ActiveForm.name # 'myformname' .OR. ;
_Screen.ActiveForm.mycontrol.value # .T."

If the menu bar determines that that expression evaluates to .F., it will disabled itself.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform