Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Lines Of A Textbox

Status
Not open for further replies.

0CODE

Programmer
Feb 8, 2004
63
CA
what im trying to do is get every line and draw them seperatly in a printing function. the textbox.lines method detects the end of a line when a "return" has been pressed etc. what i need is to get each visual line (ex:

|This specific procedure is really pissing|
|me off |

line 1 = "This specific procedure is really pissing"
line 2 = "off"

unlike it all returned in 1 line since wordwrap is on and thus auto-goes to the next line.

so what im asking is in what way can you retreive each individual line? any way / method / tip / would be helpful.
________
thanks
 
ya im designing a procedure that works with the string width in relation to the text box's width, the only problem is that its not going to be 100% accurate and some words may be cut off.
 
Well, you can always use the MS Word object and print with that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top