attached is a small file demonstrating the problem.
when the frame is made smaller all works nice up to a point when the frame keeps getting smaller BUT the sizer doesn't react anymore so the scrollbar of the second listctrl gets hidden.
My problem is a little bit bigger as in my app I have 2 lists showing images and uppon exiting "Maximize" mode the frame gets in an unusable position (shows the first list ok and only half of the second)
attached is a small file demonstrating the problem.
when the frame is made smaller all works nice up to a point when the frame keeps getting smaller BUT the sizer doesn't react anymore so the scrollbar of the second listctrl gets hidden.
This is normal. In most cases the sizers won't make the items be smaller than their minimal size, and will truncate what won't fit. One exception is items in a box sizer that have a proportion value > 0, they will always divide up the free space after the fixed size items have been layed out, and if that slice of the free space is smaller than their minsize then they will be smaller.
My problem is a little bit bigger as in my app I have 2 lists showing images and uppon exiting "Maximize" mode the frame gets in an unusable position (shows the first list ok and only half of the second)
Any ideas?
I'm not sure, can you give a sample that shows this?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
well my problem is just like the problem of the script I've attached to the previous email. The only difference is the scale.
I've attached 2 images, before and after resize, to better ilustrate the problem.
On Mon, 23 Aug 2004 15:47:59 -0700, Robin Dunn <robin@alldunn.com> wrote:
Peter Damoc wrote:
My problem is a little bit bigger as in my app I have 2 lists showing images and uppon exiting "Maximize" mode the frame gets in an unusable position (shows the first list ok and only half of the second)
Any ideas?
I'm not sure, can you give a sample that shows this?
My problem is a little bit bigger as in my app I have 2 lists showing images and uppon exiting "Maximize" mode the frame gets in an unusable position (shows the first list ok and only half of the second)
Any ideas?
I'm not sure, can you give a sample that shows this?
well my problem is just like the problem of the script I've attached to the previous email. The only difference is the scale.
I've attached 2 images, before and after resize, to better ilustrate the problem.
Apparently the generic wxListCtrl doesn't have a DoGetBestSize and so it is falling back to the default, which just returns the min size or the current size. Since there is also no min size in your sample then as the sizer expands it then it always thinks that the current (larger) size is the current best size, and so it won't shrink it below that size. To work around this just specify some small size in your wx.ListCtrl constructor call, or call SetMinSize.
···
On Mon, 23 Aug 2004 15:47:59 -0700, Robin Dunn <robin@alldunn.com> wrote:
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Calling SetMinSize((1,1)) on both lists solved the problem.
Thanks!
···
On Tue, 24 Aug 2004 18:08:25 -0700, Robin Dunn <robin@alldunn.com> wrote:
Apparently the generic wxListCtrl doesn't have a DoGetBestSize and so it is falling back to the default, which just returns the min size or the current size. Since there is also no min size in your sample then as the sizer expands it then it always thinks that the current (larger) size is the current best size, and so it won't shrink it below that size. To work around this just specify some small size in your wx.ListCtrl constructor call, or call SetMinSize.