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 get_pane
function to access the pane and add your controls inside it (i.e. use
the get_pane return value as parent for the
controls which must go in the pane, NOT the CollapsiblePane 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
CollapsiblePane inside a Sizer you should be careful to add
it with a proportion value of zero; this is because otherwise all other
windows with non-null proportion values would automatically get resized
each time the user expands or collapse the pane window resulting usually
in a weird, flickering effect.
Usage sample:
coll_pane = Wx::CollapsiblePane.new(self, :label => ’Details)CP_DEFAULT_STYLE |
The default style |
CP_TLW_NO_RESIZE |
Don’t resize the containing frame when collapsed |
To process a collapsible pane event, use these event handler macros to direct input to member
functions that take a CollapsiblePaneEvent argument.
evt_collapsiblepane_changed(id) { | event | … } | The user showed or hidden the collapsible pane. |
Initializes the object and calls Create with
all the parameters.
NULL
.CP_*
flags.Returns if the pane window is currently hidden.
Returns if the pane window is currently shown.
Collapses or expands the pane window.
Same as collapse(false).
Returns a pointer to the pane window. Add controls to the returned
Window to make them collapsible.
[This page automatically generated from the Textile source at 2023-06-09 00:45:29 +0000]