Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows API functions for edit box controls
Message
From
31/10/2001 06:53:35
 
 
To
31/10/2001 00:30:51
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00575476
Message ID:
00575528
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform