Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows API functions for edit box controls
Message
De
31/10/2001 13:25:49
 
 
À
31/10/2001 06:53:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00575476
Message ID:
00575766
Vues:
23
Hi Ed,

Thanks for your help! I follow where you're going with the POINT structure associated with a control's hWnd, however, I'm still clueless about how to get information regarding the screen position of the text cursor within a control. In order to get started, don't I need some way of finding more information about the position of the text cursor so I can in turn begin converting it to form coordinates?

I've studied the MS RTF control and don't see any information about properties that return the screen position (vs. the .SelStart or equivalent's linear position in the text stream) of the text cursor as well.

I think(?) what I'm trying to find are control properties similar to a form's CurrentX and CurrentY properties.

Idea: Is there a way to move the mouse to the position of a control's text cursor? If so I could grab the location of the text cursor by using the mouse's current coordinates?!

Thanks again for your help!
Malcolm

>>Is there a Windows API function that will return the ABSOLUTE row and column position (in pixels) of the text cursor within an edit box?
>>
>>Is there a Windows API function that will return the row and column position (in pixels) of the text cursor within an edit box RELATIVE to the frame of the edit control?
>
>In both cases, not trivially with native VFP controls; there's an API which can resolve a POINT structure relative to an hWnd (a Form has an hWnd, as do most ActiveX controls, but you'd need to compute the location of the edit box frame and convert the POINT in the Form to a POINT in the edit box frame.
>
>You'd probably find it easier using an instance of the RTF ActiveX control.
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