Delete Window object after removeChild method. [solved]
Posted: Wed Apr 08, 2009 22:11
Hello.
I have a Window in other Window. If I remove the Window from the Window (
), should I delete the removed window? must I delete the removed window?
Thanks.
I have a Window in other Window. If I remove the Window from the Window (
Code: Select all
Window* win1 = ...
...
Window* win2 = new Window("TaharezLook/StaticText","win2");
win1->addChildWindow(win2);
...
win1->removeChildWindow("win2");
delete win;
Thanks.