1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxCollapsiblePane documentation
4 %% Author: Francesco Montorsi
7 %% Copyright: (c) 2006 Francesco Montorsi
8 %% License: wxWindows license
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 \section{\class{wxCollapsiblePane
}}\label{wxcollapsiblepane
}
13 A collapsable panel is a container with an embedded button-like control which can be
14 used by the user to collapse or expand the pane's contents.
16 Note that because of its nature of control which can dynamically (and drastically)
17 change its size at run-time under user-input, when putting wxCollapsiblePane inside
18 a
\helpref{wxSizer
}{wxsizer
} you should be careful to add it with a proportion value
19 of zero; this is because otherwise all other windows with non-null proportion values
20 would automatically get resized each time the user expands or collaps the pane window.
22 It is only available if
\texttt{wxUSE
\_COLLPANE} is set to $
1$ (the default).
24 \wxheading{Derived from
}
26 \helpref{wxControl
}{wxcontrol
}\\
27 \helpref{wxWindow
}{wxwindow
}\\
28 \helpref{wxEvtHandler
}{wxevthandler
}\\
29 \helpref{wxObject
}{wxobject
}
31 \wxheading{Include files
}
35 \wxheading{Window styles
}
38 \begin{twocollist
}\itemsep=
0pt
39 \twocolitem{\windowstyle{wxCP
\_DEFAULT\_STYLE}}{The default style:
0.
}
42 \wxheading{Event handling
}
45 \begin{twocollist
}\itemsep=
0pt
46 \twocolitem{{\bf EVT
\_COLLAPSIBLEPANE\_CHANGED(id, func)
}}{The user showed or hidden the collapsible pane.
}
52 \helpref{wxPanel
}{wxpanel
}
54 \latexignore{\rtfignore{\wxheading{Members
}}}
58 \membersection{wxCollapsiblePane::wxCollapsiblePane
}\label{wxcollapsiblepane
}
60 \func{}{wxCollapsiblePane
}{\param{wxWindow *
}{parent
},
\rtfsp
61 \param{wxWindowID
}{ id
},
\rtfsp
62 \param{const wxString\&
}{label
},
\rtfsp
63 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\rtfsp
64 \param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
65 \param{long
}{ style = wxCP
\_DEFAULT\_STYLE},
\rtfsp
66 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
67 \param{const wxString\&
}{name = ``collapsiblePane"
}}
69 Initializes the object and calls
\helpref{Create
}{wxcollapsiblepanecreate
} with
73 \membersection{wxCollapsiblePane::Create
}\label{wxcollapsiblepanecreate
}
75 \func{bool
}{Create
}{\param{wxWindow *
}{parent
},
\rtfsp
76 \param{wxWindowID
}{ id
},
\rtfsp
77 \param{const wxString\&
}{label
},
\rtfsp
78 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\rtfsp
79 \param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
80 \param{long
}{ style = wxCP
\_DEFAULT\_STYLE},
\rtfsp
81 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
82 \param{const wxString\&
}{name = ``colourpickerctrl"
}}
84 \wxheading{Parameters
}
86 \docparam{parent
}{Parent window, must not be non-
\texttt{NULL
}.
}
88 \docparam{id
}{The identifier for the control.
}
90 \docparam{label
}{The initial label shown in the button which allows the user to expand or collapse the pane window.
}
92 \docparam{pos
}{Initial position.
}
94 \docparam{size
}{Initial size.
}
96 \docparam{style
}{The window style, see
{\tt wxCP
\_*
} flags.
}
98 \docparam{validator
}{Validator which can be used for additional date checks.
}
100 \docparam{name
}{Control name.
}
102 \wxheading{Return value
}
104 \true if the control was successfully created or
\false if creation failed.
107 \membersection{wxCollapsiblePane::IsCollapsed
}\label{wxcollapsiblepaneiscollapsed
}
109 \constfunc{bool
}{IsCollapsed
}{\void}
111 Returns
\true if the pane window is currently hidden.
114 \membersection{wxCollapsiblePane::IsExpanded
}\label{wxcollapsiblepaneisexpanded
}
116 \constfunc{bool
}{IsExpanded
}{\void}
118 Returns
\true if the pane window is currently shown.
121 \membersection{wxCollapsiblePane::Collapse
}\label{wxcollapsiblepanecollapse
}
123 \func{void
}{Collapse
}{\param{bool
}{collapse = true
}}
125 Collapses or expands the pane window.
128 \membersection{wxCollapsiblePane::Expand
}\label{wxcollapsiblepaneexpand
}
130 \func{void
}{Expand
}{\void}
132 Same as
\texttt{\helpref{Collapse
}{wxcollapsiblepanecollapse
}(false)
}.