>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