Newbie question on closing a window
Posted: Wed Nov 27, 2013 11:10 pm
First of all, I would like to say hello to all of you Purebasic users. I am new to Purebasic (Used to program in PHP and Python).
I have the following code:
When I click and close a window, it closes both windows. How can I control closing a window without closing them all? I though the #PB_Event_CloseWindow should get caught by the active window?
Thanks
Using Purebasic 5.21 LTS
I have the following code:
Code: Select all
OpenWindow(0,0,0,200,200,"Window 1",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
OpenWindow(1,0,0,100,100,"Window 2",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
SetActiveWindow(0)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
Thanks
Using Purebasic 5.21 LTS