Page 1 of 1

Close GUI Window in Irrlicht.NET

Posted: Mon Jun 04, 2007 11:13 am
by riddler2006
May I overlooked the method which enables recognizing the closing of a GUI Window. I'm using the .NET library and I'm not able to find the closeButton() method for the IGUIELEMENT. Unfortunately a IGUIWINDOW doesn't exist

May some of u have had this problem

Thanx for your help

mfg

Posted: Mon Jun 04, 2007 3:03 pm
by Dances
Another way to see if the window was closed is to test for the ID... I only know C++ though I have no idea if you can even do that in .NET.

Posted: Tue Jun 05, 2007 7:43 am
by riddler2006
Unfortunately as ID I get back -1 ; so it's not possible for me to identifie the window

Posted: Tue Jun 05, 2007 5:46 pm
by Dances
You should be able to set the ID in the parameters when you create the window... and the use the getElementFromID Function... if it returns 0 the window is closed... at least thats how c++ works with it...