Close GUI Window in Irrlicht.NET

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
riddler2006
Posts: 10
Joined: Thu May 24, 2007 3:42 pm

Close GUI Window in Irrlicht.NET

Post 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
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post 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.
riddler2006
Posts: 10
Joined: Thu May 24, 2007 3:42 pm

Post by riddler2006 »

Unfortunately as ID I get back -1 ; so it's not possible for me to identifie the window
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post 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...
Locked