Window console+GUI mode release

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
vagblad
Posts: 120
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece
Has thanked: 14 times
Been thanked: 23 times

Window console+GUI mode release

Post by vagblad » 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.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad

User avatar
bpd2000
Posts: 1071
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 195 times
Been thanked: 92 times

Post by bpd2000 » Tue Jul 09, 2019 10:05 am

BPD
Convert Dream into Reality through HMG

User avatar
vagblad
Posts: 120
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece
Has thanked: 14 times
Been thanked: 23 times

Post by vagblad » Tue Jul 09, 2019 10:57 am

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

Post Reply