Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling when a particular form is running
Message
From
22/05/2001 12:55:22
 
 
To
22/05/2001 12:50:53
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00509951
Message ID:
00509955
Views:
15
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform