Help with printing
Posted: Tue Jun 24, 2003 2:23 pm
I've got a multiple line string gadget with word wrap on, I use the code below for this :
Now I use the code below to load the text from this gadget into a variable :
Now I use the code below to print message$ to my printer :
The problem being is when I print to my printer message$ comes out all on one line, when type in the gadget it automatically drops down a line when I type, is their a way to print message$ to my printer the same way it looks in my gadget.
Basically I need my gadget to recognise carriage returns and when it wordwraps on to the next line.
Please help ! :roll:
Kind regards
Andy ( aka Large )
Code: Select all
StringGadget(0, 16, 181, 569, 320, "", #PB_String_Multiline|#ESB_DISABLE_LEFT|#ESB_DISABLE_RIGHT)Code: Select all
message$ = GetGadgetText(0)Code: Select all
DrawingFont(LoadFont(0, "Verdana", 25))
FrontColor(160,160,160)
Locate(720, 1665) : DrawText(message$)Basically I need my gadget to recognise carriage returns and when it wordwraps on to the next line.
Please help ! :roll:
Kind regards
Andy ( aka Large )