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 \wxheading{Derived from
}
18 \helpref{wxControl
}{wxcontrol
}\\
19 \helpref{wxWindow
}{wxwindow
}\\
20 \helpref{wxEvtHandler
}{wxevthandler
}\\
21 \helpref{wxObject
}{wxobject
}
23 \wxheading{Include files
}
27 \wxheading{Window styles
}
29 There are no specific styles for this window.
31 See also
\helpref{window styles overview
}{windowstyles
}.
35 \helpref{wxPanel
}{wxpanel
}
37 \latexignore{\rtfignore{\wxheading{Members
}}}
41 \membersection{wxCollapsiblePane::wxCollapsiblePane
}\label{wxcollapsiblepane
}
43 \func{}{wxCollapsiblePane
}{\param{wxWindow *
}{parent
},
\rtfsp
44 \param{wxWindowID
}{ id
},
\rtfsp
45 \param{const wxString\&
}{label
},
\rtfsp
46 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\rtfsp
47 \param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
48 \param{long
}{ style = wxCP
\_DEFAULT\_STYLE},
\rtfsp
49 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
50 \param{const wxString\&
}{name = ``collapsiblePane"
}}
52 Initializes the object and calls
\helpref{Create
}{wxcollapsiblepanecreate
} with
56 \membersection{wxCollapsiblePane::Create
}\label{wxcollapsiblepanecreate
}
58 \func{bool
}{Create
}{\param{wxWindow *
}{parent
},
\rtfsp
59 \param{wxWindowID
}{ id
},
\rtfsp
60 \param{const wxString\&
}{label
},
\rtfsp
61 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
\rtfsp
62 \param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
63 \param{long
}{ style = wxCP
\_DEFAULT\_STYLE},
\rtfsp
64 \param{const wxValidator\&
}{validator = wxDefaultValidator
},
65 \param{const wxString\&
}{name = ``colourpickerctrl"
}}
67 \wxheading{Parameters
}
69 \docparam{parent
}{Parent window, must not be non-
\texttt{NULL
}.
}
71 \docparam{id
}{The identifier for the control.
}
73 \docparam{label
}{The initial label shown in the button which allows the user to expand or collapse the pane window.
}
75 \docparam{pos
}{Initial position.
}
77 \docparam{size
}{Initial size.
}
79 \docparam{style
}{The window style, see
{\tt wxCP
\_*
} flags.
}
81 \docparam{validator
}{Validator which can be used for additional date checks.
}
83 \docparam{name
}{Control name.
}
85 \wxheading{Return value
}
87 \true if the control was successfully created or
\false if creation failed.
90 \membersection{wxCollapsiblePane::IsCollapsed
}\label{wxcollapsiblepaneiscollapsed
}
92 \constfunc{bool
}{IsCollapsed
}{\void}
94 Returns
\true if the pane window is currently hidden.
97 \membersection{wxCollapsiblePane::IsExpanded
}\label{wxcollapsiblepaneisexpanded
}
99 \constfunc{bool
}{IsExpanded
}{\void}
101 Returns
\true if the pane window is currently shown.
104 \membersection{wxCollapsiblePane::Collapse
}\label{wxcollapsiblepanecollapse
}
106 \func{void
}{Collapse
}{\param{bool
}{collapse = true
}}
108 Collapses or expands the pane window.
111 \membersection{wxCollapsiblePane::Expand
}\label{wxcollapsiblepaneexpand
}
113 \func{void
}{Expand
}{\void}
115 Same as
\texttt{\helpref{Collapse
}{wxcollapsiblepanecollapse
}(false)
}.