Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find Pos X,Y of the cursor position?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00805096
Message ID:
00805121
Vues:
24
The cursor in WIndows is called 'caret'. You can use GetCaretPos WIN API to get it coordinates relative to the form and than recalculate them for the editbox.
lcPoint = REPLICATE(CHR(0), 8)
GetCaretPos(@lcPoint)
SET PROCEDURE TO clsHeap
? LongToNum(LEFT(lcPoint,4))
? LongToNum(Right(lcPoint,4))
I used clsHeap class from download section to convert Long values returned by the function.

>Hi All,
>
>Is are anyway I can return the nXCoord & nYCoord of the cursor position (SelStart) in a editbox throught InteractiveChange
>
>
>Thanks in advance
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform