Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deactivate element from the main menu
Message
From
02/09/2006 07:14:44
 
 
To
01/09/2006 21:47:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01150125
Message ID:
01150491
Views:
53
>>Basically I have the following:
>>
>
>>_screen.SavingsPadActive = .T.
>>
>
>>
>>I now define and execute the menu that has the following:
>>
>
>>DEFINE PAD _1vy0rcxrs OF _MSYSMENU PROMPT "Savings" COLOR SCHEME 3 ;
>> KEY ALT+S, "" ;
>> SKIP FOR _screen.SavingsPadActive
>>
>
>>
>>Now somewhere in code based on user interaction, I will set the value from true to false (or the reversed):
>>
>
>>...
>>_screen.SavingsPadActive = .F.
>>...
>>
>
>>
>>The user will not have interacted with the menu at this point. What I want is the menu pad to now activate (was previously deactivated). If the user interacts with the menu, then the menu is updated. But I want the menu to update without the user having to interact with the menu. I have had some success in activating a form and then closing it -- it seems to cause a refresh, but this does not always work. I am wondering if anyone has found a way to force the activation/deactivation of menu items displayed without user interaction with the menu. This would only be applicable for the main pads (all the other items will be updated because the user has to interact with menu in order to see them).
>>
>
>AFAIK, this code always works to force the refresh on VFP system menu (_MSYSMENU) without user interaction
>
>ACTIVATE MENU _MSysMenu NOWAIT

This works great -- thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform