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
Clearing windows
Moderators: CEGUI MVP, CEGUI Team
Re: Clearing windows
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*/ );
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
Thanks. For hiding, does that also work for buttons, static windows, edit boxes, etc.?
-EDarkness
-EDarkness
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Clearing windows
you can hide any kind of window!
Re: Clearing windows
Beware of destroying windows that currently have an event firing. It will crash your program, and its a pain to track down.
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Clearing windows
This should no longer be an issue as CEGUI has a dead-pool as of 0.3 if I remember correctly.
Re: Clearing windows
Thanks for the help, guys. Everything works great.
-EDarkness
-EDarkness
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 8 guests