Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows API functions for edit box controls
Message
De
31/10/2001 06:53:35
 
 
À
31/10/2001 00:30:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00575476
Message ID:
00575528
Vues:
22
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform