Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get X/Y coordinates for a textbox
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Get X/Y coordinates for a textbox
Divers
Thread ID:
00630616
Message ID:
00630616
Vues:
67
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform