X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..3508c1432884472f0d24f0f98c0dc75ed35df297:/interface/wx/collpane.h diff --git a/interface/wx/collpane.h b/interface/wx/collpane.h index 161eff344d..f7205fe55e 100644 --- a/interface/wx/collpane.h +++ b/interface/wx/collpane.h @@ -8,7 +8,6 @@ /** @class wxCollapsiblePaneEvent - @wxheader{collpane.h} This event class is used for the events generated by wxCollapsiblePane. @@ -46,7 +45,6 @@ public: /** @class wxCollapsiblePane - @wxheader{collpane.h} A collapsible pane is a container with an embedded button-like control which can be used by the user to collapse or expand the pane's contents. @@ -84,7 +82,13 @@ public: @beginStyleTable @style{wxCP_DEFAULT_STYLE} - The default style: 0. + The default style. It includes wxTAB_TRAVERSAL and wxBORDER_NONE. + @style{wxCP_NO_TLW_RESIZE} + By default wxCollapsiblePane resizes the top level window containing it + when its own size changes. This allows to easily implement dialogs + containing an optionally shown part, for example, and so is the default + behaviour but can be inconvenient in some specific cases -- use this + flag to disable this automatic parent resizing then. @endStyleTable @beginEventTable{wxCollapsiblePaneEvent} @@ -94,7 +98,7 @@ public: @library{wxcore} @category{ctrl} - + @appearance{collapsiblepane.png} @see wxPanel, wxCollapsiblePaneEvent */ @@ -105,7 +109,7 @@ public: Default constructor. */ wxCollapsiblePane(); - + /** Initializes the object and calls Create() with all the parameters. */ @@ -115,7 +119,7 @@ public: const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "collapsiblePane"); + const wxString& name = wxCollapsiblePaneNameStr); /** @param parent @@ -145,12 +149,12 @@ public: const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "collapsiblePane"); + const wxString& name = wxCollapsiblePaneNameStr); /** Collapses or expands the pane window. */ - void Collapse(bool collapse = true); + virtual void Collapse(bool collapse = true); /** Same as calling Collapse(@false). @@ -161,12 +165,12 @@ public: Returns a pointer to the pane window. Add controls to the returned wxWindow to make them collapsible. */ - wxWindow* GetPane() const; + virtual wxWindow* GetPane() const; /** Returns @true if the pane window is currently hidden. */ - bool IsCollapsed() const; + virtual bool IsCollapsed() const; /** Returns @true if the pane window is currently shown.