Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting that shortcut menu where I want it
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01264711
Message ID:
01264757
Views:
22
>>I have a toolbar button over which I need to place a shortcut menu when the button is clicked. The code that will display the shortcut menu is in a form. Using MROW() and MCOL() cause the menu to display over the form, not the toolbar button. How can I get the shortcut menu over the toolbar button? It would seem be doable via AMOUSEOBJ and a little adjustment of the numbers based on the position of the toolbar, but at present I'm not getting the desired results.
>>
>>Thanks,
>>
>>Russell Campbell
>
>See if the sample from this page http://www.berezniker.com/display/VFP/Pixels+and+Foxels can be used to achieve your goal.

Thanks - knew it was doable. I got the "column" position working perfect but the "row" position was not cooperating. But this worked:

r = 0
c = Pix2Fox(taMouseObj(3) + taMouseObj(2).Left)

where taMouseObj is the array populated by AMOUSEOBJ

UPDATE: And thanks to Sergey.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform