]>
Commit | Line | Data |
---|---|---|
3c1f8cb1 VZ |
1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
2 | %% Name: collpane.tex | |
3 | %% Purpose: wxCollapsiblePane documentation | |
4 | %% Author: Francesco Montorsi | |
5 | %% Created: 2006-10-14 | |
6 | %% RCS-ID: $Id$ | |
7 | %% Copyright: (c) 2006 Francesco Montorsi | |
8 | %% License: wxWindows license | |
9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
10 | ||
11 | ||
12 | ||
13 | \section{\class{wxCollapsiblePane}}\label{wxcollapsiblepane} | |
14 | ||
15 | A collapsable panel is a container with an embedded button-like control which can be | |
16 | used by the user to collapse or expand the pane's contents. | |
17 | ||
18 | \wxheading{Derived from} | |
19 | ||
20 | \helpref{wxControl}{wxcontrol}\\ | |
21 | \helpref{wxWindow}{wxwindow}\\ | |
22 | \helpref{wxEvtHandler}{wxevthandler}\\ | |
23 | \helpref{wxObject}{wxobject} | |
24 | ||
25 | \wxheading{Include files} | |
26 | ||
27 | <wx/collpane.h> | |
28 | ||
29 | \wxheading{Window styles} | |
30 | ||
31 | There are no specific styles for this window. | |
32 | ||
33 | See also \helpref{window styles overview}{windowstyles}. | |
34 | ||
35 | \wxheading{See also} | |
36 | ||
37 | \helpref{wxPanel}{wxpanel} | |
38 | ||
39 | \latexignore{\rtfignore{\wxheading{Members}}} | |
40 | ||
41 | ||
42 | ||
43 | \membersection{wxCollapsiblePane::wxCollapsiblePane}\label{wxcollapsiblepane} | |
44 | ||
45 | \func{}{wxCollapsiblePane}{\param{wxWindow *}{parent},\rtfsp | |
46 | \param{wxWindowID}{ id},\rtfsp | |
47 | \param{const wxString\& }{label},\rtfsp | |
48 | \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp | |
49 | \param{const wxSize\& }{size = wxDefaultSize},\rtfsp | |
50 | \param{long}{ style = wxCP\_DEFAULT\_STYLE},\rtfsp | |
51 | \param{const wxValidator\& }{validator = wxDefaultValidator}, | |
52 | \param{const wxString\& }{name = ``collapsiblePane"}} | |
53 | ||
54 | Initializes the object and calls \helpref{Create}{wxcollapsiblepanecreate} with | |
55 | all the parameters. | |
56 | ||
57 | ||
58 | \membersection{wxCollapsiblePane::Create}\label{wxcollapsiblepanecreate} | |
59 | ||
60 | \func{bool}{Create}{\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 = ``colourpickerctrl"}} | |
68 | ||
69 | \wxheading{Parameters} | |
70 | ||
71 | \docparam{parent}{Parent window, must not be non-\texttt{NULL}.} | |
72 | ||
73 | \docparam{id}{The identifier for the control.} | |
74 | ||
75 | \docparam{label}{The initial label shown in the button which allows the user to expand or collapse the pane window.} | |
76 | ||
77 | \docparam{pos}{Initial position.} | |
78 | ||
79 | \docparam{size}{Initial size.} | |
80 | ||
81 | \docparam{style}{The window style, see {\tt wxCP\_*} flags.} | |
82 | ||
83 | \docparam{validator}{Validator which can be used for additional date checks.} | |
84 | ||
85 | \docparam{name}{Control name.} | |
86 | ||
87 | \wxheading{Return value} | |
88 | ||
89 | \true if the control was successfully created or \false if creation failed. | |
90 | ||
91 | ||
92 | \membersection{wxCollapsiblePane::IsCollapsed}\label{wxcollapsiblepaneiscollapsed} | |
93 | ||
94 | \constfunc{bool}{IsCollapsed}{\void} | |
95 | ||
96 | Returns \true if the pane window is currently hidden. | |
97 | ||
98 | ||
99 | ||
100 | \membersection{wxCollapsiblePane::Collapse}\label{wxcollapsiblepanecollapse} | |
101 | ||
102 | \func{void}{Collapse}{\param{bool }{collapse = true}} | |
103 | ||
104 | Collapses or expands the pane window. | |
105 | ||
106 | ||
107 | ||
108 | \membersection{wxCollapsiblePane::Expand}\label{wxcollapsiblepaneexpand} | |
109 | ||
110 | \func{void}{Expand}{\void} | |
111 | ||
112 | Equivalent to {\tt Collapse(false)}. | |
113 | ||
114 |