Window console+GUI mode release

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
vagblad
Posts: 160
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

Window console+GUI mode release

Post 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.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Window console+GUI mode release

Post by bpd2000 »

BPD
Convert Dream into Reality through HMG
User avatar
vagblad
Posts: 160
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

Re: Window console+GUI mode release

Post by vagblad »

Thanks BPD. Worked like a charm!
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad
Post Reply