>>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.