Another Linux panel bug?
Posted: Mon Mar 03, 2025 5:06 pm
Can someone confirm?
Code: Select all
EnableExplicit
Procedure Main()
If OpenWindow(0, 0, 0, 400, 400, "Bug? demo", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Protected tsw, tsh
PanelGadget(1, 10, 10, 380, 380)
AddGadgetItem (1, -1, "Panel 1")
AddGadgetItem (1, -1, "Panel 1")
tsw = GetGadgetAttribute(1, #PB_Panel_ItemWidth) ; broken under linux - both come back as 0
tsh = GetGadgetAttribute(1, #PB_Panel_ItemHeight) ; works fine under windows
Debug Str(tsw) + #LF$ + Str(tsh)
CloseGadgetList()
EndIf
EndProcedure
Main()
Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow