[wx-dev] Re: wxCollapsiblePaneSizer

Vadim Zeitlin vadim at wxwindows.org
Thu Feb 1 17:30:56 PST 2007


On Thu, 01 Feb 2007 19:45:22 +0100 Francesco Montorsi <f18m_cpp217828 at yahoo.it> wrote:

FM> the code above using the new wxCollapsiblePaneSizer would be:
FM> 
FM> wxCollapsiblePaneSizer *collpaneSz =
FM>       new wxCollapsiblePaneSizer(wxVERTICAL, ...);
FM> 
FM> /* add controls to collpaneSz */
FM> ...
FM> 
FM> 
FM> easy, isn't it ;) ?

 Yes, but we need to specify the wxCollapsiblePane label somewhere. Of
course, it could be passed to the sizer ctor just as for wxStaticBoxSizer
(while this doesn't seem logical to me, there is a precedent and so it
should be ok).

 All in all this does seem a good idea although I still wonder how natural
is it to think of collapsible pane as a sizer.

 Regards,
VZ





More information about the wx-dev mailing list