Help with printing

Just starting out? Need help? Post your questions and find answers here.
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Help with printing

Post 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 )
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Post 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 )
Post Reply