Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can a form disable a option in the menu?
Message
De
23/06/1998 22:23:35
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
21/06/1998 04:37:50
Tan Gay Cheong
Cybercomp Computer Services
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00110338
Message ID:
00111110
Vues:
18
I think someone already mentionned this but check out the SET SKIP OF command in HELP. When you go into your edit method you can issue a
SET SKIP OF BAR NEW OF FILE .F.
whereFILE is the name of the drop down menu where edit is found and NEWt is the name of the edit bar option. Then when you exit the edit routine, issue
SET SKIP OF BAR NEW OF FILE .T.

Another option is available if, for example, you have a toolbar with a NEW option on it. You can then set the SKIP FOR portion of the menu bar for new to the ENABLED status of the new buuton on the tool bar so that when you disable the toolbar button, the NEW menu option is automatically disabled as well.

>How can I program in a form to have a method to disable a option in the menu?
>
>For example, I wouldn't want the users to create new when I am in a edit mode. Hence I would like to disable the "New" option under the "File" in the menu.
>
>How can I refer to the particular option?
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform