On an EditorGadget, SetGadgetText(0, #CRLF$) inserts a newline instead of replacing all the text with a newline.
Bug?
Code: Select all
OpenWindow(0, 0, 0, 320, 240, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
EditorGadget(0, 0, 0, 320, 240)
SetGadgetText(0, "First text!")
SetGadgetText(0, "Hello" + #CRLF$ + "World!") ; overwrites previous text
SetGadgetText(0, #CRLF$) ; does not overwrite previous text !!!
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow