Page 1 of 1

Close Gadget Function (?)

Posted: Tue Mar 20, 2012 2:20 pm
by NubeCheCorre
Is there a function, in Hollywood, to check if the user press the close gadget button in the app window? I would like to use it to exit from my program and free all the allocated resources :)

Re: Close Gadget Function (?)

Posted: Tue Mar 20, 2012 3:43 pm
by PEB
Check the documentation for InstallEventHandler().

Re: Close Gadget Function (?)

Posted: Tue Mar 20, 2012 8:17 pm
by djrikki
NubeCheCorre wrote:Is there a function, in Hollywood, to check if the user press the close gadget button in the app window? I would like to use it to exit from my program and free all the allocated resources :)
Yup, CloseWindow, SizeWindow, OnMouseOver, OnMouseUp, OnMouseDown etc... whilst you've got your head around event handling it will become a lot clearer.

Re: Close Gadget Function (?)

Posted: Tue Mar 20, 2012 9:10 pm
by NubeCheCorre
Thanks Guys! :-)