How can I prevent user from pushing the close window button?

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
keynet
Posts: 18
Joined: Wed Jun 27, 2012 9:07 am

How can I prevent user from pushing the close window button?

Post by keynet »

When the irrDevice is run(), it can closed by pushing the close window button on the upper right window(the X button)

But I want to get rid of this button so that user cannot close the window by pushing the button. I only want to let the window close when certain event happens.
But I cannot find any related function in irrDevice class. What should I do?
From Seoul, South Korea
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: How can I prevent user from pushing the close window but

Post by hendu »

It's not exposed, so you either

a) hack irr
b) create your own window, and handle the events yourself
Post Reply