Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling when a particular form is running
Message
 
 
À
22/05/2001 12:50:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00509951
Message ID:
00509955
Vues:
16
Hi!

Define a SKIP FOR for menu items. This is a logical expression. You can check if form runs by many ways, following are samples:

.. SKIP FOR FormOpened('FormName')
&& FormOpened() is a function that checks if form opened

.. SKIP FOR type("_Screen.ActiveForm") == "O" AND _Screen.ActiveForm.Name = 'FormName'

.. SKIP FOR type("glFormNameOpened")=="L" AND glFormNameOpened
&& glFormNameOpened is a public variable that set to .T. if the appropriate for opened.


HTH.

>I want to disable certain menu options when certian forms are running...or maybe when a propety has a particular value. How would I refer to the form in my menu settings (without the menu crashing if it loads first)?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform