Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a method from shortcut menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00760032
Message ID:
00760042
Vues:
15
>Hi All,
>
>If I have a shortcut menu which have the following items in it.
>
>Customer
>Properties
>
>If I select customer, I want to execute the CustInfo() method within that form. How would I do that? TIA

From the RightClick method of the object:
*form reference
oform=Thisform

*menu
DEFINE POPUP MyPop SHORTCUT FROM mrow(),mcol()
DEFINE BAR 1 OF MyPop PROMPT "Customer"
DEFINE BAR 2 OF MyPop PROMPT "Properties"

ON SELECTION BAR 1 OF MyPop oform.CustInfo()
ON SELECTION BAR 2 OF MyPop oform.PropInfo()

ACTIVATE POPUP MyPop
RELEASE POPUP MyPop

*clear the ref
oform=.NULL.
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform