Parenting and closing rounded boxes?

Hello there, I want to have a box instead of the standard derma panel and I was wondering if I could then parent other things, such as buttons and text to it. Then also, I want to close it or set its visibility to false? Is that possible because I would rather not use the dull standard derma panels.

Thanks!

You can register a new panel with your own paint function or you can force a custom skin on a derma panel. Then you can do all sorts of stuff - parent, set visibility, etc.

Use the ‘dull standard derma panels’ and override its Paint function.

[lua]myPanel.Paint = function(self)
local w,h = self:GetWide(),self:GetTall()
–now draw your custom appearance here
end[/lua]