About Store Forum Documentation Contact



Post Reply 
How to Remove a GuiObjs from Gui?
Author Message
Qbound Offline
Member

Post: #1
How to Remove a GuiObjs from Gui?
Hi all,

i searched the forum and looked into the Headerfiles. I want to remove a GuiObject from the Gui. Addition is pretty simple:
Gui += MyGuiObj

but how do i remove the MyGuiObj from Gui?

The reason is that i have my own gamestates and my own manager for them. Therefore when the gamestate reaches the shutdown state then i want to dispose all of the used memory inclusive the loaded gui stuff.

thanks for your help,
Oliver
07-27-2010 08:36 PM
Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #2
RE: How to Remove a GuiObjs from Gui?
Try this
Code:
Gui.desktop()->removeChild(MyGuiObj);
07-27-2010 10:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #3
RE: How to Remove a GuiObjs from Gui?
or myGuiObj.del();
07-28-2010 03:51 PM
Find all posts by this user Quote this message in a reply
Qbound Offline
Member

Post: #4
RE: How to Remove a GuiObjs from Gui?
Hi all,

sometimes it is to simple smile Many thanks for the help...

cu
Oliver
07-28-2010 07:56 PM
Find all posts by this user Quote this message in a reply
Post Reply