Qbound
Member
|
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 |
|
Harton
Member
|
RE: How to Remove a GuiObjs from Gui?
Try this
Code:
Gui.desktop()->removeChild(MyGuiObj);
|
|
07-27-2010 10:09 PM |
|
b1s
Member
|
RE: How to Remove a GuiObjs from Gui?
or myGuiObj.del();
|
|
07-28-2010 03:51 PM |
|
Qbound
Member
|
RE: How to Remove a GuiObjs from Gui?
Hi all,
sometimes it is to simple Many thanks for the help...
cu
Oliver
|
|
07-28-2010 07:56 PM |
|