Hi all. While wxADJUST_MINSIZE seems great for having my sizer
resize as a control might expand, how can I have it shrink back down
when the control is ready to decrease in size? As far as I can tell,
the sizer always allotes the expanded size for the control, 'causing
the control itself to expand to fit the space (Hence some schemes to
reset the SetMinItemSize failed). Has anyone come up with a solution
to this? Thanks.
Hi all. While wxADJUST_MINSIZE seems great for having my sizer
resize as a control might expand, how can I have it shrink back down
when the control is ready to decrease in size? As far as I can tell,
the sizer always allotes the expanded size for the control, 'causing
the control itself to expand to fit the space (Hence some schemes to
reset the SetMinItemSize failed). Has anyone come up with a solution
to this? Thanks.
I think 2.3.4 has made some changes in this area to try and improve it. The sizers now call window.GetAdjustedBestSize which returns the max of the window's "best size" and minimum "size hints".
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
So I shouldn't have to change anything in 2.3.4 then? It'll work
with my current wxADJUST_MINSIZE? When is the 2.3.4 release slated?
Would one possible solution be to have the sizer remove and read the
object at every update, to start the sizing from scratch, essentially?
-- Mike
···
On Thu, Nov 21 @ 13:54, Robin Dunn wrote:
I think 2.3.4 has made some changes in this area to try and improve it.
The sizers now call window.GetAdjustedBestSize which returns the max
of the window's "best size" and minimum "size hints".
This is an old email but I just wanted to report that 2.3.4.1 does
fix the problem
-- Mike
···
On Thu, Nov 21 @ 13:54, Robin Dunn wrote:
Michael Gilfix wrote:
> Hi all. While wxADJUST_MINSIZE seems great for having my sizer
>resize as a control might expand, how can I have it shrink back down
>when the control is ready to decrease in size? As far as I can tell,
>the sizer always allotes the expanded size for the control, 'causing
>the control itself to expand to fit the space (Hence some schemes to
>reset the SetMinItemSize failed). Has anyone come up with a solution
>to this? Thanks.
>
I think 2.3.4 has made some changes in this area to try and improve it.
The sizers now call window.GetAdjustedBestSize which returns the max
of the window's "best size" and minimum "size hints".