/**
@class wxCollapsiblePaneEvent
@wxheader{collpane.h}
-
+
This event class is used for the events generated by
wxCollapsiblePane.
-
+
@library{wxcore}
@category{FIXME}
-
+
@seealso
wxCollapsiblePane
*/
/**
@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.
-
+
Once constructed you should use the wxCollapsiblePane::GetPane
function to access the pane and add your controls inside it (i.e. use the
wxCollapsiblePane::GetPane's returned pointer as parent for the
controls which must go in the pane, NOT the wxCollapsiblePane itself!).
-
+
Note that because of its nature of control which can dynamically (and
drastically)
change its size at run-time under user-input, when putting wxCollapsiblePane
would automatically get resized each time the user expands or collapse the pane
window
resulting usually in a weird, flickering effect.
-
+
Usage sample:
-
+
@code
wxCollapsiblePane *collpane = new wxCollapsiblePane(this, wxID_ANY,
wxT("Details:"));
-
+
// add the pane with a zero proportion value to the 'sz' sizer which
contains it
sz-Add(collpane, 0, wxGROW|wxALL, 5);
-
+
// now add a test label in the collapsible pane using a sizer to layout it:
wxWindow *win = collpane-GetPane();
wxSizer *paneSz = new wxBoxSizer(wxVERTICAL);
win-SetSizer(paneSz);
paneSz-SetSizeHints(win);
@endcode
-
+
It is only available if @c wxUSE_COLLPANE is set to 1 (the default).
-
+
@beginStyleTable
@style{wxCP_DEFAULT_STYLE}:
The default style: 0.
@endStyleTable
-
+
@library{wxcore}
@category{ctrl}
@appearance{collapsiblepane.png}
-
+
@seealso
wxPanel, wxCollapsiblePaneEvent
*/
void Collapse(bool collapse = @true);
/**
- @param parent
+ @param parent
Parent window, must not be non-@NULL.
- @param id
+ @param id
The identifier for the control.
- @param label
+ @param label
The initial label shown in the button which allows the user to expand or
collapse the pane window.
- @param pos
+ @param pos
Initial position.
- @param size
+ @param size
Initial size.
- @param style
+ @param style
The window style, see wxCP_* flags.
- @param validator
+ @param validator
Validator which can be used for additional date checks.
- @param name
+ @param name
Control name.
@returns @true if the control was successfully created or @false if