Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you pass a parameter to a shortcut procedure
Message
 
 
À
10/09/2008 12:43:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01346381
Message ID:
01346389
Vues:
18
>>>The user right clicks a control which produces a shortcut menu. The choice then executes procedure code built into the shortcut. The procedure code needs to know a property value of the control that was right clicked. Is there a way to pass this value to the procedure code other than setting it as a public or private variable?
>>>
>>>Thanks
>>
>>The quick answer is yes, though I don't remember how. I do remember in the past I used a nice special class for shortcut menu...
>>
>>Also would thisform.ActiveControl work in your case to find what was clicked?
>
>thisform.activecontrol would give me the value inside of the rightclick event but it would still need to be passed to the shortcut. My past experience is that you can't use thisform inside of a menu.

Yes, you're right, I think we can not use thisform inside a menu. Sorry, I forgot how did I deal with this problem in the past.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform