Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining width of last line in an editbox
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01447267
Message ID:
01447268
Views:
43
>Hi All,
>
>I have an editbox that can vary in both height and width and the contents can wrap from one to several lines. I want to be able to place an image control on top this editbox just to the right of the last character on the last line. I've been using the GDI function MeasureString to get & size the width and height of the editbox, but I can't seem to find a good way to get the text width of an individual line within the editbox.
>
>Any ideas?
>
>Thanks,
>
>-m@

Will alines() or mlines() work ?

See also http://www.berezniker.com/content/pages/visual-foxpro/simple-line-wrap-message-box
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform