Potential problem in openwindow
Posted: Wed Nov 16, 2011 5:52 pm
I use lion and pb 4.6. I wanted to post this here before making a big fuss in the bug reports.
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?
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)