I had a look on your previous suggestion and it worked out well instead of what I was hoping to do. Here I need a solution for a different task where visibility of children is controlled elsewhere. I can do changes in the code to get it done but it would be nice if I find a way to mimic invisibility by setting width/height to zero.
Prashant
···
----- Original Message ----
From: Cody Precord codyprecord@gmail.com
To: wxpython-users@lists.wxwidgets.org
Sent: Saturday, September 20, 2008 2:27:55 AM
Subject: Re: [wxpython-users] Scale a Panel or Sizer to make it invisible
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.
-
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.
-
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