Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deactivate element from the main menu
Message
From
01/09/2006 06:00:12
 
 
To
31/08/2006 14:13:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01150125
Message ID:
01150317
Views:
35
>I am curious, I have set the menu SKIP FOR clause to a system level property (boolean). If I toggle the property, the menu does not always update to reflect the current setting for the property. Is there a way to reliably toggle the property and have the menu pads activate/deactivate accordingly? I have tried several work-arounds to try to force the update of appearance via code -- DO FORM somename with the form appearing off-screen and then closing on activate; this sometimes forces the menu to update but not always. Is there a "sure-fire" way to always have the menu state update? Thank you.

Do you mean that you're treating Skip for clause like a resident prog, just sitting there waiting for you to change its param? Not sure, never having used it AFAIK. Maybe it doesn't work that way - rather sets the menu according to the toggles on invokation. I guess you have to explicitly invoke the menu each time. Set skip to is what I'd use when system conditions change.

You could put it in a procedure, with a T/F param, that fires when the system prop toggles, but I don't see how the prog can automatically react (as in a form event) to the changing of a var (like in debug).

'pends how you toggle the flag. Do you click a button? Is it in code? Either way, the event code for your toggling (e.g. the .click() of a toggle button) could invoke the proc to invoke the set skip.

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform