How to get WindowCloseEvent of the mainWindow?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
gerdb
Posts: 194
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

How to get WindowCloseEvent of the mainWindow?

Post 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
CuteAlien
Admin
Posts: 9670
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to get WindowCloseEvent of the mainWindow?

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
gerdb
Posts: 194
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

Re: How to get WindowCloseEvent of the mainWindow?

Post 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
CuteAlien
Admin
Posts: 9670
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to get WindowCloseEvent of the mainWindow?

Post 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... ) ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply