Page 1 of 1

Help with printing

Posted: Tue Jun 24, 2003 2:23 pm
by Large
I've got a multiple line string gadget with word wrap on, I use the code below for this :

Code: Select all

StringGadget(0, 16, 181, 569, 320, "", #PB_String_Multiline|#ESB_DISABLE_LEFT|#ESB_DISABLE_RIGHT)
Now I use the code below to load the text from this gadget into a variable :

Code: Select all

message$ = GetGadgetText(0)
Now I use the code below to print message$ to my printer :

Code: Select all

DrawingFont(LoadFont(0, "Verdana", 25))
FrontColor(160,160,160)
Locate(720, 1665) : DrawText(message$)
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 )

Posted: Tue Jun 24, 2003 3:35 pm
by Large
Just thought I'd let you guys know I have sorted this problem, the new editor gadget solved all my problems, wahoooo ! :D

Kind regards

Andy ( aka Large )