Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining row/col pixel position of text cursor in con
Message
De
01/11/2001 13:11:53
 
 
À
01/11/2001 10:59:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00575285
Message ID:
00576297
Vues:
29
Steve,

Thank you for taking the time to research this and build a prototype. Your solution is similar to one just posted by Cetin. Cetin's code has the advantage of not requiring a VB wrapper.

Again, thanks for your help and effort on this thread!

Regards,
Malcolm


>Have you figured out how to get the position of the text cursor? I found out that it is called the 'caret'. There is an API call called getCaretPos() that returns the caret position relative to the current client window.
>
>I have put a little VB wrapper DLL around it and it seems to work well within VFP.
>
>
>oCaret = createobject("caretWrap", "caret")
>? oCaret.getposition()  && returns a string
>
>
>I set it up to return a string. For example, "x165y10" means the caret is at position (165, 10). I guess it could have 2 more methods: getXPos() and getYPos().
>
>Let me know if you want the VB code, or I can email you the VB project so you can mess with it.
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform