]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/combopopup.tex
another patch bring the docs more up to date (patch 1717776)
[wxWidgets.git] / docs / latex / wx / combopopup.tex
CommitLineData
0dfff674
WS
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: combopopup.tex
3%% Purpose: wxComboPopup docs
4%% Author: Jaakko Salli
5%% Modified by:
6%% Created:
7%% RCS-ID: $Id$
8%% Copyright: (c) Jaakko Salli
9%% License: wxWindows license
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12\section{\class{wxComboPopup}}\label{wxcombopopup}
13
14In order to use a custom popup with \helpref{wxComboCtrl}{wxcomboctrl},
15an interface class must be derived from wxComboPopup. For more information
16how to use it, see \helpref{Setting Custom Popup for wxComboCtrl}{wxcomboctrl}.
17
18\wxheading{Include files}
19
20<combo.h>
21
22\wxheading{See also}
23
24\helpref{wxComboCtrl}{wxcomboctrl}
25
26\latexignore{\rtfignore{\wxheading{Members}}}
27
28
29\membersection{wxComboPopup::wxComboPopup}\label{wxcombopopupwxcombopopup}
30
31\func{}{wxComboPopup}{\void}
32
33Default constructor. It is recommended that internal variables
34are prepared in \helpref{Init}{wxcombopopupinit} instead
35(because \helpref{m\_combo}{wxcombopopupmcombo} is not valid in constructor).
36
37
38\membersection{wxComboPopup::m\_combo}\label{wxcombopopupmcombo}
39
40\member{wxComboCtrl}{m\_combo}
41
42Parent \helpref{wxComboCtrl}{wxcomboctrl}. This is parameter has
43been prepared before \helpref{Init}{wxcombopopupinit} is called.
44
45
46\membersection{wxComboPopup::Create}\label{wxcombopopupcreate}
47
48\func{bool}{Create}{\param{wxWindow* }{parent}}
49
50The derived class must implement this to create the popup control.
51
52\wxheading{Return value}
53
54\true if the call succeeded, \false otherwise.
55
56
57\membersection{wxComboPopup::Dismiss}\label{wxcombopopupdismiss}
58
59\func{void}{Dismiss}{\void}
60
61Utility function that hides the popup.
62
63
64\membersection{wxComboPopup::GetAdjustedSize}\label{wxcombopopupgetadjustedsize}
65
66\func{wxSize}{GetAdjustedSize}{\param{int }{minWidth}, \param{int }{prefHeight}, \param{int }{maxHeight}}
67
68The derived class may implement this to return adjusted size
69for the popup control, according to the variables given.
70
71\wxheading{Parameters}
72
73\docparam{minWidth}{Preferred minimum width.}
74\docparam{prefHeight}{Preferred height. May be -1 to indicate
75no preference.}
76\docparam{maxWidth}{Max height for window, as limited by
77screen size.}
78
79\wxheading{Remarks}
80
81Called each time popup is about to be shown.
82
83
84\membersection{wxComboPopup::GetControl}\label{wxcombopopupgetcontrol}
85
86\func{wxWindow*}{GetControl}{\void}
87
88The derived class must implement this to return pointer
89to the associated control created in \helpref{Create}{wxcombopopupcreate}.
90
91
92\membersection{wxComboPopup::GetStringValue}\label{wxcombopopupgetstringvalue}
93
94\constfunc{wxString}{GetStringValue}{\void}
95
96The derived class must implement this to return
97string representation of the value.
98
99
100\membersection{wxComboPopup::Init}\label{wxcombopopupinit}
101
102\func{void}{Init}{\void}
103
104The derived class must implement this to initialize
105its internal variables. This method is called immediately
106after construction finishes. \helpref{m\_combo}{wxcombopopupmcombo}
107member variable has been initialized before the call.
108
109
110\membersection{wxComboPopup::IsCreated}\label{wxcombopopupiscreated}
111
112\constfunc{bool}{IsCreated}{\void}
113
114Utility method that returns \true if Create has been called.
115
116Useful in conjunction with \helpref{LazyCreate}{wxcombopopuplazycreate}.
117
118
119\membersection{wxComboPopup::LazyCreate}\label{wxcombopopuplazycreate}
120
121\func{bool}{LazyCreate}{\void}
122
123The derived class may implement this to return
124\true if it wants to delay call to \helpref{Create}{wxcombopopupcreate}
125until the popup is shown for the first time. It is more
126efficient, but on the other hand it is often more convenient
127to have the control created immediately.
128
129\wxheading{Remarks}
130
131Base implementation returns \false.
132
133
134\membersection{wxComboPopup::OnComboDoubleClick}\label{wxcombopopuponcombodoubleclick}
135
136\func{void}{OnComboDoubleClick}{\void}
137
138The derived class may implement this to do something
139when the parent \helpref{wxComboCtrl}{wxcomboctrl} gets double-clicked.
140
141
142\membersection{wxComboPopup::OnComboKeyEvent}\label{wxcombopopuponcombokeyevent}
143
144\func{void}{OnComboKeyEvent}{\param{wxKeyEvent\& }{event}}
145
146The derived class may implement this to receive
147key events from the parent \helpref{wxComboCtrl}{wxcomboctrl}.
148
149Events not handled should be skipped, as usual.
150
151
152\membersection{wxComboPopup::OnDismiss}\label{wxcombopopupondismiss}
153
154\func{void}{OnDismiss}{\void}
155
156The derived class may implement this to do
157special processing when popup is hidden.
158
159
160\membersection{wxComboPopup::OnPopup}\label{wxcombopopuponpopup}
161
162\func{void}{OnPopup}{\void}
163
164The derived class may implement this to do
165special processing when popup is shown.
166
167
168\membersection{wxComboPopup::PaintComboControl}\label{wxcombopopuppaintcombocontrol}
169
170\func{void}{PaintComboControl}{\param{wxDC\& }{dc}, \param{const wxRect\& }{rect}}
171
172The derived class may implement this to paint
173the parent \helpref{wxComboCtrl}{wxcomboctrl}.
174
175Default implementation draws value as string.
176
177
178\membersection{wxComboPopup::SetStringValue}\label{wxcombopopupsetstringvalue}
179
180\func{void}{SetStringValue}{\param{const wxString\& }{value}}
181
182The derived class must implement this to receive
183string value changes from \helpref{wxComboCtrl}{wxcomboctrl}.
b67a86d5 184