Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic menu option
Message
De
03/11/2005 09:08:08
 
 
À
03/11/2005 04:19:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01064856
Message ID:
01064923
Vues:
30
>Hi All
>
>I have a program that constructs a top menu using DEFINE PAD's and ON PAD ... ACTIVATE POPUP commands. This all works ok. However, is there a way that each time a user clicks a particular PAD that I can first run a function which re-creates the applicable POPUP so that I can add/remove menu items from it?
>
>I tried ON SELECTION PAD ... DO command which then ACTIVATES the POPUP but this displays the POPUP menu in the top left corner of the main window underneath the menu bar and any toolbars.
DEFINE PAD thispad of thismenu .... SKIP FOR NOT REFRESHPAD('thispad','thismenu')

PROCEDURE REFRESHPAD(cPad,cMenu)
DO CASE
 CASE cPad=...
  RELEASE POPUP ...
  * REBUILD POPUP
ENDCASE
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform