Page 1 of 1
Clearing windows
Posted: Tue Aug 02, 2005 12:47
by EDarkness
There are two things I'm having a tough time doing...
1. hiding windows
2. destroying windows
How would one go about doing either of those things? I've read the docs, but I can't understand them.
Anyone have any tips?
-EDarkness
Re: Clearing windows
Posted: Tue Aug 02, 2005 13:10
by Sachin
to hide a window, use this:
pWindow->hide();
where pWindow is a pointer to any window
to destroy a window u can use
CEGUI::WindowManager::getSingleton().destroyWindow( pWindow /*or just a string containing window name*/ );
Re: Clearing windows
Posted: Tue Aug 02, 2005 20:04
by EDarkness
Thanks. For hiding, does that also work for buttons, static windows, edit boxes, etc.?
-EDarkness
Re: Clearing windows
Posted: Tue Aug 02, 2005 20:05
by lindquist
you can hide any kind of window!
Re: Clearing windows
Posted: Wed Aug 03, 2005 13:53
by khariq
Beware of destroying windows that currently have an event firing. It will crash your program, and its a pain to track down.
Re: Clearing windows
Posted: Wed Aug 03, 2005 15:11
by lindquist
This should no longer be an issue as CEGUI has a dead-pool as of 0.3 if I remember correctly.
Re: Clearing windows
Posted: Fri Aug 05, 2005 19:11
by EDarkness
Thanks for the help, guys. Everything works great.
-EDarkness