SetWindowState unhides - Bug or Feature?
Posted: Thu May 08, 2008 7:56 am
I'm not sure. Should it be possible to maximize an hidden window?
I'd like to create a window with lot of gadgets and restore it with
the styles and dimensions from a saved session.
And only wants to show if everything is ready..
I'd like to create a window with lot of gadgets and restore it with
the styles and dimensions from a saved session.
And only wants to show if everything is ready..
Code: Select all
OpenWindow(0, 0, 0, 800, 600, "SetWindowStateBug", #PB_Window_SystemMenu|#PB_Window_Invisible)
MessageRequester( "", "Windows is unvisible", 0 )
; Window should stay unvisible..
SetWindowState( 0, #PB_Window_Maximize )
MessageRequester( "", "Windows is still unvisible??", 0 )
HideWindow(0, #False)
MessageRequester( "", "Windows is now visible", 0 )
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow