I tested the following code both with PB 5.31 on Windows, and with SB 1.02 on Windows (with Firefox):
Code: Select all
If OpenWindow(0, 0, 0, 270, 160, "TextGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(0, 10, 10, 150, 40, "Line 1 " + #CR$ + "Line 2")
TextGadget(1, 10, 60, 150, 40, "Line 1 " + #LF$ + "Line 2")
TextGadget(2, 10, 110, 150, 40, "Line 1 " + #CRLF$ + "Line 2")
EndIf
CompilerIf #PB_Compiler_OS <> #PB_OS_Web
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
CompilerEndIf
Output with SpiderBasic:Line 1
Line 2
Line 1
Line 2
Line 1
Line 2
So how can I force a linebreak in a TextGadget with SpiderBasic?Line 1 Line 2
Line 1 Line 2
Line 1 Line 2