On PB 5.22 LTS, this example code correctly opens a window with 3 Scintillas with 3 different background colors.
On PB 5.30b9, the colored Scintillas have a large blank white area that cannot be clicked!
(I know the Scintilla version was updated with PB 5.30, but I wonder if this is a PB bug because it is similar to this fixed IDE bug: http://www.purebasic.fr/english/viewtop ... 24&t=59508 )
PS. Seems to be changed by #SCI_SETSCROLLWIDTH ... maybe a Scintilla bug??
Code: Select all
CompilerIf (#PB_Compiler_OS <> #PB_OS_MacOS)
CompilerError "This is a bug report on MAC"
CompilerEndIf
InitScintilla()
OpenWindow(0, 0, 0, 480, 480, "", #PB_Window_ScreenCentered|#PB_Window_SystemMenu)
ScintillaGadget(0, 0, 0, WindowWidth(0), WindowHeight(0)/3, #Null)
ScintillaSendMessage(0, #SCI_STYLESETBACK, #STYLE_DEFAULT, $C0C0FF)
ScintillaSendMessage(0, #SCI_STYLECLEARALL)
ScintillaSendMessage(0, #SCI_SETSCROLLWIDTH, 10)
ScintillaSendMessage(0, #SCI_SETTEXT, 0, @"Scintilla")
ScintillaGadget(1, 0, WindowHeight(0)/3, WindowWidth(0), WindowHeight(0)/3, #Null)
ScintillaSendMessage(1, #SCI_STYLESETBACK, #STYLE_DEFAULT, $C0FFC0)
ScintillaSendMessage(1, #SCI_STYLECLEARALL)
ScintillaSendMessage(1, #SCI_SETSCROLLWIDTH, 50)
ScintillaSendMessage(1, #SCI_SETTEXT, 0, @"Hello World")
ScintillaGadget(2, 0, WindowHeight(0)*2/3, WindowWidth(0), WindowHeight(0)/3, #Null)
ScintillaSendMessage(2, #SCI_STYLESETBACK, #STYLE_DEFAULT, $FFC0C0)
ScintillaSendMessage(2, #SCI_STYLECLEARALL)
ScintillaSendMessage(2, #SCI_SETSCROLLWIDTH, 100)
ScintillaSendMessage(2, #SCI_SETTEXT, 0, @"Why does SCROLLWIDTH affect background now?")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
