Clearing windows

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
EDarkness
Just popping in
Just popping in
Posts: 11
Joined: Wed Jul 20, 2005 19:57

Clearing windows

Postby EDarkness » Tue Aug 02, 2005 12:47

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

User avatar
Sachin
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 06, 2005 09:42

Re: Clearing windows

Postby Sachin » Tue Aug 02, 2005 13:10

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*/ );

User avatar
EDarkness
Just popping in
Just popping in
Posts: 11
Joined: Wed Jul 20, 2005 19:57

Re: Clearing windows

Postby EDarkness » Tue Aug 02, 2005 20:04

Thanks. For hiding, does that also work for buttons, static windows, edit boxes, etc.?


-EDarkness

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Clearing windows

Postby lindquist » Tue Aug 02, 2005 20:05

you can hide any kind of window!

User avatar
khariq
Just popping in
Just popping in
Posts: 9
Joined: Mon Mar 21, 2005 14:40

Re: Clearing windows

Postby khariq » Wed Aug 03, 2005 13:53

Beware of destroying windows that currently have an event firing. It will crash your program, and its a pain to track down.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Clearing windows

Postby lindquist » Wed Aug 03, 2005 15:11

This should no longer be an issue as CEGUI has a dead-pool as of 0.3 if I remember correctly.

User avatar
EDarkness
Just popping in
Just popping in
Posts: 11
Joined: Wed Jul 20, 2005 19:57

Re: Clearing windows

Postby EDarkness » Fri Aug 05, 2005 19:11

Thanks for the help, guys. Everything works great. :D


-EDarkness


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 7 guests