Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not Showing a menu option
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00561566
Message ID:
00561674
Vues:
20
>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!"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform