Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I update popup on dropdown?
Message
De
04/07/2006 06:43:57
 
 
À
04/07/2006 06:33:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01133548
Message ID:
01133552
Vues:
16
>I believe this question was asked for many times but I cannot find answers(((
>
>So, I need to update contents of menu popup just before it is activated. For example, I need to refresh most recently used files list when user select "Open Recent" in main menu.
>I don't want to update this popup every time new file is open - this is just wasting processor time. I want to update it when user ask for it.
>
>But with commands like ON BAR or ON PAD I just can activate popup but cannot refresh it. I tried to associate my procedure with ON BAR insted of ACTIVATE POPUP. But if I use ACTIVATE POPUP in my procedure then the popup appears separated from main menu.
>
>So the question is simple: Is it possible to do ON BAR ... ACTIVATE POPUP and update popup just before it is activated?

The only way I have found to update a menu from within the menu is to use the SKIP FOR clause
ie SKIP FOR myfunction()

myfunction() can update/modify the popup(s) and return FALSE

The SKIP FORs are evaluated each time the main menu is activated
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform