Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get X/Y coordinates for a textbox
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Get X/Y coordinates for a textbox
Miscellaneous
Thread ID:
00630616
Message ID:
00630616
Views:
64
I'm attaching a shortcut menu to a textbox class. When the user RightClicks, I use MROW() and MCOL() to position the menu, like this:

DEFINE POPUP popRClick SHORTCUT RELATIVE FROM MROW(),MCOL()

I'd like to add the ability to invoke the shortcut menu via keystroke, even when the mouse is positioned over some other control on the form. Comboboxes do this with Alt+DownArrow.

How can I obtain the X/Y coordinates for the textbox (the active control) when the mouse is positioned elsewhere over the form? I assume I need replacements for the MCOL() and MROW() functions.
"Problems cannot be solved at the same level of awareness that created them." - Albert Einstein

Bruce Allen
NTX Data
Next
Reply
Map
View

Click here to load this message in the networking platform