Scale a Panel or Sizer to make it invisible

Once elements are added to a panel or to a sizer, Is it possible to scale either of one to zero on height/width or any other workaround to make it invisible this way?

Thanks

test.py (2.35 KB)

Hello,

···

On Fri, Sep 19, 2008 at 1:56 PM, Prashant Saxena animator333@yahoo.com wrote:

Once elements are added to a panel or to a sizer, Is it possible to scale either of one to zero on height/width or any other workaround to make it invisible this way?

Yes, but you are putting the panel in a sizer so the sizer is controling its size. Meaning that whenever the window is layed out when its shown, resized, ect… the sizer is re-adjusting the panels size.

  1. Not sure why you would want to do this anyway, you can just call Hide/Show on the panel instead to Hide it and its children.

  2. I sent you code the last time you asked about hiding things (not more than 2 weeks ago), did you even look at it?

Cody