ScrollAreaGadget has strange artifacts in Linux
Posted: Sun Jun 02, 2024 9:22 am
See this image:
https://i.imgur.com/xPhuiCZ.png
https://i.imgur.com/xPhuiCZ.png
Code: Select all
Procedure BindScrollDatas()
SetWindowTitle(0, "ScrollAreaGadget " + "(" + GetGadgetAttribute(0, #PB_ScrollArea_X) + "," + GetGadgetAttribute(0, #PB_ScrollArea_Y) + ")" )
EndProcedure
If OpenWindow(0, 0, 0, 405, 240, "ScrollAreaGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ScrollAreaGadget(0, 10, 10, 390,220, 575, 555, 30)
ButtonGadget (1, 10, 10, 230, 30,"Button 1")
ButtonGadget (2, 50, 50, 230, 30,"Button 2")
ButtonGadget (3, 90, 90, 230, 30,"Button 3")
TextGadget (4,130,130, 230, 20,"This is the content of a ScrollAreaGadget!",#PB_Text_Right)
CloseGadgetList()
BindGadgetEvent(0, @ BindScrollDatas())
Repeat
event = WaitWindowEvent(10)
Until event = #PB_Event_CloseWindow
EndIf