When disabling a resizable window and later enabling it again it's not resizable anymore. It works ok if enabled immediately, but not if enabled later (after one second, with a timer, in the event loop). Problem occurs with gtk2 and gtk3, not with qt.
Code:
;flags = #PB_Window_Invisible | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget | #PB_Window_SystemMenu
flags = #PB_Window_SizeGadget
win = OpenWindow(#PB_Any, 50, 100, 800, 600, "..", flags)
ButtonGadget(#PB_Any, 100,100,100,100,"button")
SmartWindowRefresh(win, 1)
;HideWindow(win, 0)
DisableWindow(win, 1)
;DisableWindow(win, 0)
AddWindowTimer(win, 1, 1000)
Repeat
WaitWindowEvent()
If Event() = #PB_Event_Timer
Debug "timer"
DisableWindow(win, 0)
RemoveWindowTimer(win, 1)
EndIf
Until Event() = #PB_Event_CloseWindow