Resizing a wxPanel when child label grows in size

Mark Melvin wrote:

Is your panel inside a sizer? If so, try adding
'|wxADJUST_MINSIZE' to the
flags.

Doesn't help.

Ok, to take all the shots in the dark out of this discussion,
I've attached a minimal(?) sample app to show the idea (and
what's not working.)

It's probably got a lot of junk in it that isn't necessary or
isn't helping, but this is the sum of everything suggested so
far and what I've tried on my own, to no avail.)

If some wxpyrt could strip it down/change it to the minimum
required to actually work properly, and post it back,
I'd really appreciate it.

Thanks in advance,
/Will Sadkin
Parlance Corporation

Okay, here's a fixed version. I'll let you parse it to see what's different, note that the key was using wxADJUST_MINSIZE for the entire sizer hierarchy (and eliminating some unnecessary sizers didn't hurt).

HTH,
Mike

Will Sadkin wrote:

Mark Melvin wrote:

Is your panel inside a sizer? If so, try adding '|wxADJUST_MINSIZE' to the
flags.
   
Doesn't help.

Ok, to take all the shots in the dark out of this discussion, I've attached a minimal(?) sample app to show the idea (and what's not working.)

It's probably got a lot of junk in it that isn't necessary or
isn't helping, but this is the sum of everything suggested so far and what I've tried on my own, to no avail.)

If some wxpyrt could strip it down/change it to the minimum required to actually work properly, and post it back,
I'd really appreciate it.

Thanks in advance,
/Will Sadkin
Parlance Corporation

...

resize.py (2.77 KB)