Do I have to delete gadgets???

BlitzPlus Forums/BlitzPlus Programming/Do I have to delete gadgets???

Lazze(Posted 2004) [#1]
Im my (huge) app-project, I'm opening and closing windows several times. Do I have to delete the gadgets, panels etc in the closing window, or are they deleted automaticaly???

The topic is probably covered several times but I can't find it anywhere... :o)

Lazze


soja(Posted 2004) [#2]
No, you can free the parent gadget and the children are deallocated automatically.


Kevin_(Posted 2004) [#3]
You better off hiding them rather than clearing them from memory. What if you want to open and close the same window several times? You'll have to redefine your gadgets every time if you clear them from memory.

TIP: Use a panel as a grouping gadget for your gadgets on a window. That way all you have to do is hide the panel rather then hide each gadget.

It works for me :)