This is a huge problem, all the gadgets metrics are broken since PB uses the fixed panel wich is forbidden in gtk3.
Code: Select all
EnableExplicit
Global.i cont, win, cont2
Procedure sizeHandler()
ResizeGadget(cont, 0, 0, WindowWidth(win), WindowHeight(win))
ResizeGadget(cont2, #PB_Ignore, #PB_Ignore, #PB_Ignore, GadgetHeight(cont))
EndProcedure
OpenWindow(0, 0, 0, 200, 200, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget)
BindEvent(#PB_Event_SizeWindow, @sizeHandler())
cont = ContainerGadget(#PB_Any, 0, 0, 200, 200);, #PB_Container_Flat)
cont2 = ContainerGadget(#PB_Any, 100, 0, 80, 200);, #PB_Container_Flat)
SetGadgetColor(cont, #PB_Gadget_BackColor, RGB(255, 0, 0))
SetGadgetColor(cont2, #PB_Gadget_BackColor, RGB(0, 255, 0))
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
