Sometimes when the window is maximized/restored, the WebGadget will disappear until the window is resized again. It doesn't happen on macOS, but it does on Windows.
Is there a way to force the WebGadget to reappear?
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget)
ContainerGadget(1, 0, 0, 580, 280, #PB_Container_Single)
WebGadget(0, 0, 0, 580, 280, "http://www.purebasic.com")
CloseGadgetList()
StringGadget(2, 0, 0, 0, 0, "...")
SplitterGadget(3, 0, 0, WindowWidth(0), WindowHeight(0), 2, 1, #PB_Splitter_Vertical | #PB_Splitter_FirstFixed)
SetGadgetState(3, 150)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
End
Case #PB_Event_SizeWindow
ResizeGadget(3, 0, 0, WindowWidth(0), WindowHeight(0))
ResizeGadget(0, 0, 0, GadgetWidth(1), GadgetHeight(1))
EndSelect
ForEver
EndIf