the TextGadget correctly displays 2 lines of Text
but it only prints 1 line of Text
how can i Print the 2 lines of text like it shows in the TextGadget ??
Code: Select all
; TextGadget_with_NewLine_Math_Printing__v1
LoadFont(1,"Verdana",10)
SetGadgetFont(#PB_Default,FontID(1))
CrLf$ = Chr(13)+ Chr(10)
X.D = 123.456 * 2
txt$ = "TextGadget " + CrLf$ + StrD(X.D,5)
OpenWindow(0, 0, 0, 270, 160, "TextGadget_with_NewLine", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(1, 30, 10, 250, 40, txt$)
PrintRequester()
StartPrinting("")
LoadFont(2, "Arial", 80)
StartDrawing(PrinterOutput())
DrawingFont(FontID(2))
DrawText(100, 800, txt$,RGB(0,0,255),RGB(255,255,255))
StopDrawing()
StopPrinting()
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow