Page 1 of 1

Window console+GUI mode release

Posted: Tue Jul 09, 2019 9:58 am
by vagblad
Hello all,

I have a small question. I am running a program in console + GUI mode. The problem is that the user can click the X button of the console window and shut down the program. Is there a way of knowing when that action was performed to either prevent it or have a function to perform some actions? Kinda like an OnRelease event of a normal window.

I've tried creating a main window which is hidden and i was trying to trigger the onrelease event of that but it doesnt work.The event is never being triggered.

Thanks a lot in advance.

Re: Window console+GUI mode release

Posted: Tue Jul 09, 2019 10:05 am
by bpd2000

Re: Window console+GUI mode release

Posted: Tue Jul 09, 2019 10:57 am
by vagblad
Thanks BPD. Worked like a charm!