Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where M I in memo while editing in EditBox
Message
From
03/06/1999 14:57:39
 
 
To
03/06/1999 14:05:46
Diptesh Patel
Unitelsoftware Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00226121
Message ID:
00226136
Views:
25
>Is there any way to find which position Iam In memo. i.e. which row , column
>

You can get the current cursor position (absolute characters) using the SelStart property of the native EditBox, but there's no equivalent to MLINE(0, and with word wrap, there's no sure way to determine the current line and column, since you can't do something simple like count end of line characters, and if you use a proportional font, you can't even accurately compute things based on a fixed maximum number of characters per line, since the number of characters per line will vary based on individual character widths.

There's no property to do this in the RichTextBox ActiveX control, either, so you'll need to find either a VFP class that someone wrote with these capabilities, or more than likely, a supported third-party ActiveX that can do this for you, if you really need it.

>TIA
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
Reply
Map
View

Click here to load this message in the networking platform