Just running the Gadget.sb demo code from the Gadgets help
The code led me to believe that pressing the QUIT button would hide the window - but nothing at all happens...
Am I missing something? Bug?
Newbie question
Re: Newbie question
That's because someone used
#PB_Window_TitleBar
instead of
#PB_Window_SystemMenu
with the OpenWindow command.
The other option would be to change
BindEvent(#PB_Event_CloseWindow, @CloseWindowEvent())
to
BindEvent(#PB_Event_Gadget, @CloseWindowEvent(),0,8)
so it uses the "Quit" button instead.
Yeah it's a bug cause it's not doing what the end user expects it to do
#PB_Window_TitleBar
instead of
#PB_Window_SystemMenu
with the OpenWindow command.
The other option would be to change
BindEvent(#PB_Event_CloseWindow, @CloseWindowEvent())
to
BindEvent(#PB_Event_Gadget, @CloseWindowEvent(),0,8)
so it uses the "Quit" button instead.
Yeah it's a bug cause it's not doing what the end user expects it to do
Re: Newbie question
Thanks for the detailed explanation, Paul!