Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you pass a parameter to a shortcut procedure
Message
 
 
To
10/09/2008 12:43:49
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01346381
Message ID:
01346392
Views:
8
>>>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.

Here is what I found

Re: Shortcut menu on EditBox Thread #610274 Message #610599
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform