Sizer help (min sizes, proportionality, and window resizing)

Luca Cappa luca.cappa at sequoia.it
Wed May 14 07:37:40 PDT 2008


Hello Vadim,

On Fri, 09 May 2008 16:10:11 +0200, Vadim Zeitlin <vadim at wxwidgets.org>  =

wrote:
> On Fri, 09 May 2008 15:52:09 +0200 Luca Cappa <luca.cappa at sequoia.it>  =

> wrote:
>  The sizers will never make the window smaller than its minimal size,
> whatever its proportion. So you need to explicitly call SetMinSize() with
> something small on the wxStaticText to allow it to become smaller than  =

> the
> size it needs to display its label.

Actually I tried to call SetMinSize() on all the controls contained into  =

my wxPanel, but the minimum size is not respected. Instead the only  =

respected minimum size is the one of the TLW.
I think the problem lies in the layout of my main window, since I am using  =

a wxFrame managed by a wxAuiManager, and the wxPanel is child of another  =

panel which resides inside a page of a wxAuiNotebook.
I also verified this in the auidemo sample, the given minimum sizes are  =

not honored :/ For this purpose I modified the AUI sample in today SVN  =

trunk, you could see the patch here attached. In a wxAuiNotebook page I  =

wanted to reproduce what I wish (I explained  in my first post), but it  =

did not work: you could see the situation before resizing the TLW in the  =

first image, and in the second you see that both the textctrl overlaps and  =

the minimum size (100 and 300 resp. on the horizontal axis) is not  =

respected.

I think I could resolve that problem setting a minimum size on the page of  =

the auinotebook, but I am clueless on how to do it, since I tryed lot of  =

different ways with no luck.

Thanks,
Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wx_minsize.diff
Type: application/octet-stream
Size: 1492 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080514/5a=
693562/wx_minsize-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wx_minsize2.jpg
Type: image/jpeg
Size: 29923 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080514/5a=
693562/wx_minsize2-0001.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wx_minsize.jpg
Type: image/jpeg
Size: 40633 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080514/5a=
693562/wx_minsize-0001.jpg


More information about the wx-users mailing list