From: Scott L. <sla...@th...> - 2002-09-19 05:01:38
|
On Wed, 18 Sep 2002, DH wrote: > Why would you ever ->Add a sizer to a sizer? For example, you can have one "page" Sizer which is vertical and add horizontal "row" Sizers to it. I think it's conceptually nice this way. $pagesizer = Wx::BoxSizer->new(wxVERTICAL); $rowsizer = Wx::BoxSizer->new(wxHORIZONTAL); # here add some Controls to $rowsizer $pagesizer->Add($rowsizer); `Add' with BoxSizer lets you tell how the added thing will resize, so you could have a bottom rowsizer containing some 'OK' and 'Cancel' buttons not be not resizable, but the other rows in the dialog above are resizable. |