Window console+GUI mode release
Posted: Tue Jul 09, 2019 9:58 am
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.
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.