When opening a window we use #pb_window_systemmenu to have the close, maximize, minimize buttons there.
If I close a window and then open it up, the closebutton is there. Anyone can confirm?
Code: Select all
OpenWindow(0,0,0,1024,800,"Window")
StringGadget(0,0,0,1024,800,"Close me")
Repeat
Until WaitWindowEvent(5)=#PB_Event_CloseWindow
CloseWindow(0)
OpenWindow(0,0,0,1024,800,"Window")
StringGadget(0,0,0,1024,800,"I dont have a close button - no #pb_window_systemmenu")
Repeat
Until WaitWindowEvent(5)=#PB_Event_CloseWindow
CloseWindow(0)

