Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not Showing a menu option
Message
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00561566
Message ID:
00561674
Views:
18
>Is there a way in the menu designer to NOT show a menu item if some result = .t.
>such as if there is a configuation file not available, then I don't want the menu option to show up, not disabled, because then users call and want to know why it is disabled?
>
>Thanks
>Kirk

i don't use the menu designer, and when i have to hide an option i use something like:
&& ... 

DEFINE BAR _MED_COPY OF edicao PROMPT "Copy"	;
KEY CTRL+C, "CTRL+C"

IF (result # .t.)  && assuming that when result == .t. you don't wanna show the item
		
DEFINE BAR _MED_PASTE OF edicao PROMPT "Paste"  ;
KEY CTRL+P, "CTRL+P"				 				

ENDIF

DEFINE BAR 7 OF edicao PROMPT "\-"

&& ...
HTH

Alonso
Like Frank said: "I did it... MY WAY!"
Previous
Reply
Map
View

Click here to load this message in the networking platform