Page 1 of 1

How to get WindowCloseEvent of the mainWindow?

Posted: Wed Apr 09, 2014 6:39 am
by gerdb
Hi,

id like to capture the main-window's close-event when pressed on the x - button in window-title, to show a dialog asking the user to exit or not.

Is there something or do i have to embedd irrlicht in another toolkit?

thx in advance

Re: How to get WindowCloseEvent of the mainWindow?

Posted: Wed Apr 09, 2014 10:18 am
by CuteAlien
Sorry, really old feature wish from Bitplane (http://sourceforge.net/p/irrlicht/feature-requests/126/), but he never got around to coding it. So currently we don't seem to have a way to do that.

Re: How to get WindowCloseEvent of the mainWindow?

Posted: Wed Apr 09, 2014 11:33 am
by gerdb
I see xD (3 years later),

i guess i just use some gui-toolkit for that. I think i can try to manage a way without 3rd party for Windows and Linux,
but the other supported plats by irrlicht has to do somebody else.

Any hints would be appreciated too.

cya

Re: How to get WindowCloseEvent of the mainWindow?

Posted: Wed Apr 09, 2014 1:51 pm
by CuteAlien
gerdb wrote:I see xD (3 years later)
I think he stopped contributing around that time. But 3 years is nothing - I'm currently applying patches which I wrote 6-7 years ago (and which were the reason I joined the Irrlicht team in the first place... ) ;-)