
Today, I finally worked out why: if the EditorGadget is DISABLED when you set MULTILINE text in it, the border becomes thick -- and stays thick even if you enable the gadget AFTER setting the text!
Below is my test code that shows the problem. Is this common knowledge, or a bug?
Code: Select all
OpenWindow(0,200,200,210,100,"test",#PB_Window_SystemMenu)
EditorGadget(1,10,10,90,80)
DisableGadget(1,1)
SetGadgetText(1,"thin border")
DisableGadget(1,0)
EditorGadget(2,110,10,90,80)
a$="thick border"+#CRLF$
For a=1 To 10
a$+Str(a)+#CRLF$
Next
DisableGadget(2,1) ; Comment this to see the difference!
SetGadgetText(2,a$)
DisableGadget(2,0)
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow

