Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deactivate element from the main menu
Message
De
01/09/2006 21:47:10
 
 
À
01/09/2006 12:53:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01150125
Message ID:
01150469
Vues:
32
>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
HTH
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform