]>
Commit | Line | Data |
---|---|---|
1e6feb95 | 1 | ///////////////////////////////////////////////////////////////////////////// |
11e62fe6 | 2 | // Name: src/univ/combobox.cpp |
6d0ce565 | 3 | // Purpose: wxComboBox implementation |
1e6feb95 VZ |
4 | // Author: Vadim Zeitlin |
5 | // Modified by: | |
6 | // Created: 15.12.00 | |
7 | // RCS-ID: $Id$ | |
442b35b5 | 8 | // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) |
65571936 | 9 | // Licence: wxWindows licence |
1e6feb95 VZ |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
1e6feb95 VZ |
12 | // ============================================================================ |
13 | // declarations | |
14 | // ============================================================================ | |
15 | ||
16 | // ---------------------------------------------------------------------------- | |
17 | // headers | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
1e6feb95 VZ |
20 | #include "wx/wxprec.h" |
21 | ||
22 | #ifdef __BORLANDC__ | |
23 | #pragma hdrstop | |
24 | #endif | |
25 | ||
26 | #if wxUSE_COMBOBOX | |
27 | ||
28 | #ifndef WX_PRECOMP | |
29 | #include "wx/log.h" | |
30 | ||
31 | #include "wx/button.h" | |
32 | #include "wx/combobox.h" | |
33 | #include "wx/listbox.h" | |
34 | #include "wx/textctrl.h" | |
8cb172b4 | 35 | #include "wx/bmpbuttn.h" |
1e6feb95 VZ |
36 | |
37 | #include "wx/validate.h" | |
38 | #endif | |
39 | ||
d4e5272b | 40 | #include "wx/tooltip.h" |
a340b80d | 41 | #include "wx/combo.h" |
1e6feb95 VZ |
42 | |
43 | #include "wx/univ/renderer.h" | |
44 | #include "wx/univ/inphand.h" | |
45 | #include "wx/univ/theme.h" | |
46 | ||
9467bdb7 VZ |
47 | // ---------------------------------------------------------------------------- |
48 | // wxStdComboBoxInputHandler: allows the user to open/close the combo from kbd | |
49 | // ---------------------------------------------------------------------------- | |
50 | ||
51 | class WXDLLEXPORT wxStdComboBoxInputHandler : public wxStdInputHandler | |
52 | { | |
53 | public: | |
54 | wxStdComboBoxInputHandler(wxInputHandler *inphand); | |
55 | ||
56 | virtual bool HandleKey(wxInputConsumer *consumer, | |
57 | const wxKeyEvent& event, | |
58 | bool pressed); | |
59 | }; | |
1e6feb95 VZ |
60 | |
61 | // ---------------------------------------------------------------------------- | |
62 | // wxComboListBox is a listbox modified to be used as a popup window in a | |
63 | // combobox | |
64 | // ---------------------------------------------------------------------------- | |
65 | ||
66 | class wxComboListBox : public wxListBox, public wxComboPopup | |
67 | { | |
68 | public: | |
69 | // ctor and dtor | |
e051d008 | 70 | wxComboListBox(); |
1e6feb95 VZ |
71 | virtual ~wxComboListBox(); |
72 | ||
73 | // implement wxComboPopup methods | |
a340b80d VZ |
74 | virtual bool Create(wxWindow* parent); |
75 | virtual void SetStringValue(const wxString& s); | |
76 | virtual wxString GetStringValue() const; | |
77 | virtual wxWindow *GetControl() { return this; } | |
78 | virtual void OnPopup(); | |
79 | virtual wxSize GetAdjustedSize(int minWidth, int prefHeight, int maxHeight); | |
1e6feb95 | 80 | |
d2fde247 VZ |
81 | // fix virtual function hiding |
82 | virtual void SetSelection(int n) { DoSetSelection(n, true); } | |
83 | void SetSelection(int n, bool select) { DoSetSelection(n, select); } | |
84 | ||
6f02a879 VZ |
85 | // used to process wxUniv actions |
86 | bool PerformAction(const wxControlAction& action, | |
87 | long numArg, | |
88 | const wxString& strArg); | |
89 | ||
1e6feb95 | 90 | protected: |
55f095d4 VZ |
91 | // set m_clicked value from here |
92 | void OnLeftUp(wxMouseEvent& event); | |
93 | ||
1e6feb95 | 94 | private: |
1e6feb95 VZ |
95 | DECLARE_EVENT_TABLE() |
96 | }; | |
97 | ||
98 | // ---------------------------------------------------------------------------- | |
99 | // event tables and such | |
100 | // ---------------------------------------------------------------------------- | |
101 | ||
1e6feb95 | 102 | BEGIN_EVENT_TABLE(wxComboListBox, wxListBox) |
55f095d4 | 103 | EVT_LEFT_UP(wxComboListBox::OnLeftUp) |
1e6feb95 VZ |
104 | END_EVENT_TABLE() |
105 | ||
a57d600f | 106 | IMPLEMENT_DYNAMIC_CLASS2(wxComboBox, wxControl, wxComboCtrl) |
1e6feb95 VZ |
107 | |
108 | // ============================================================================ | |
109 | // implementation | |
110 | // ============================================================================ | |
111 | ||
112 | // ---------------------------------------------------------------------------- | |
a340b80d | 113 | // wxComboListBox |
1e6feb95 VZ |
114 | // ---------------------------------------------------------------------------- |
115 | ||
e051d008 | 116 | wxComboListBox::wxComboListBox() : wxListBox(), wxComboPopup() |
1e6feb95 | 117 | { |
1e6feb95 VZ |
118 | } |
119 | ||
a340b80d | 120 | bool wxComboListBox::Create(wxWindow* parent) |
1e6feb95 | 121 | { |
a340b80d VZ |
122 | if ( !wxListBox::Create(parent, wxID_ANY, |
123 | wxDefaultPosition, wxDefaultSize, | |
124 | 0, NULL, | |
125 | wxBORDER_SIMPLE | wxLB_INT_HEIGHT | | |
126 | m_combo->GetWindowStyle() & wxCB_SORT ? wxLB_SORT : 0) ) | |
a290fa5a | 127 | return false; |
1e6feb95 | 128 | |
a340b80d VZ |
129 | // we don't react to the mouse events outside the window at all |
130 | StopAutoScrolling(); | |
1e6feb95 | 131 | |
a290fa5a | 132 | return true; |
1e6feb95 VZ |
133 | } |
134 | ||
a340b80d | 135 | wxComboListBox::~wxComboListBox() |
1e6feb95 | 136 | { |
1e6feb95 VZ |
137 | } |
138 | ||
a340b80d | 139 | wxString wxComboListBox::GetStringValue() const |
1e6feb95 | 140 | { |
a340b80d | 141 | return wxListBox::GetStringSelection(); |
1e6feb95 VZ |
142 | } |
143 | ||
a340b80d | 144 | void wxComboListBox::SetStringValue(const wxString& value) |
1e6feb95 | 145 | { |
615a96e3 JS |
146 | if ( !value.empty() ) |
147 | { | |
148 | if (FindString(value) != wxNOT_FOUND) | |
149 | wxListBox::SetStringSelection(value); | |
150 | } | |
a340b80d VZ |
151 | else |
152 | wxListBox::SetSelection(-1); | |
1e6feb95 VZ |
153 | } |
154 | ||
a340b80d | 155 | void wxComboListBox::OnPopup() |
1e6feb95 VZ |
156 | { |
157 | } | |
158 | ||
159 | bool wxComboListBox::PerformAction(const wxControlAction& action, | |
160 | long numArg, | |
161 | const wxString& strArg) | |
162 | ||
163 | { | |
164 | if ( action == wxACTION_LISTBOX_FIND ) | |
165 | { | |
166 | // we don't let the listbox handle this as instead of just using the | |
167 | // single key presses, as usual, we use the text ctrl value as prefix | |
a57d600f | 168 | // and this is done by wxComboCtrl itself |
a290fa5a | 169 | return true; |
1e6feb95 VZ |
170 | } |
171 | ||
172 | return wxListBox::PerformAction(action, numArg, strArg); | |
173 | } | |
174 | ||
55f095d4 VZ |
175 | void wxComboListBox::OnLeftUp(wxMouseEvent& event) |
176 | { | |
177 | // we should dismiss the combo now | |
a340b80d VZ |
178 | // first update the combo and close the listbox |
179 | Dismiss(); | |
180 | m_combo->SetValue(wxListBox::GetStringSelection()); | |
55f095d4 | 181 | |
a340b80d VZ |
182 | // next let the user code have the event |
183 | wxCommandEvent evt(wxEVT_COMMAND_COMBOBOX_SELECTED,m_combo->GetId()); | |
184 | evt.SetInt(wxListBox::GetSelection()); | |
185 | evt.SetEventObject(m_combo); | |
186 | m_combo->ProcessEvent(evt); | |
55f095d4 | 187 | |
a340b80d | 188 | event.Skip(); |
e2ca829e JS |
189 | } |
190 | ||
a340b80d VZ |
191 | wxSize wxComboListBox::GetAdjustedSize(int minWidth, |
192 | int WXUNUSED(prefHeight), | |
193 | int maxHeight) | |
1e6feb95 | 194 | { |
a340b80d VZ |
195 | wxSize bestSize = wxListBox::GetBestSize(); |
196 | return wxSize(wxMax(bestSize.x,minWidth), | |
197 | wxMin(bestSize.y,maxHeight)); | |
1e6feb95 VZ |
198 | } |
199 | ||
200 | // ---------------------------------------------------------------------------- | |
201 | // wxComboBox | |
202 | // ---------------------------------------------------------------------------- | |
203 | ||
204 | void wxComboBox::Init() | |
205 | { | |
206 | m_lbox = (wxListBox *)NULL; | |
207 | } | |
208 | ||
584ad2a3 MB |
209 | wxComboBox::wxComboBox(wxWindow *parent, |
210 | wxWindowID id, | |
211 | const wxString& value, | |
212 | const wxPoint& pos, | |
213 | const wxSize& size, | |
214 | const wxArrayString& choices, | |
215 | long style, | |
216 | const wxValidator& validator, | |
217 | const wxString& name) | |
218 | { | |
219 | Init(); | |
220 | ||
221 | Create(parent, id, value, pos, size, choices, style, validator, name); | |
222 | } | |
223 | ||
224 | bool wxComboBox::Create(wxWindow *parent, | |
225 | wxWindowID id, | |
226 | const wxString& value, | |
227 | const wxPoint& pos, | |
228 | const wxSize& size, | |
229 | const wxArrayString& choices, | |
230 | long style, | |
231 | const wxValidator& validator, | |
232 | const wxString& name) | |
233 | { | |
234 | wxCArrayString chs(choices); | |
235 | ||
236 | return Create(parent, id, value, pos, size, chs.GetCount(), | |
237 | chs.GetStrings(), style, validator, name); | |
238 | } | |
239 | ||
1e6feb95 VZ |
240 | bool wxComboBox::Create(wxWindow *parent, |
241 | wxWindowID id, | |
242 | const wxString& value, | |
243 | const wxPoint& pos, | |
244 | const wxSize& size, | |
245 | int n, | |
ba1e9d6c | 246 | const wxString choices[], |
1e6feb95 VZ |
247 | long style, |
248 | const wxValidator& validator, | |
249 | const wxString& name) | |
250 | { | |
a57d600f | 251 | if ( !wxComboCtrl::Create(parent, id, value, pos, size, style, |
1e6feb95 VZ |
252 | validator, name) ) |
253 | { | |
a290fa5a | 254 | return false; |
1e6feb95 VZ |
255 | } |
256 | ||
e051d008 | 257 | wxComboListBox *combolbox = new wxComboListBox(); |
a340b80d VZ |
258 | SetPopupControl(combolbox); |
259 | ||
1e6feb95 VZ |
260 | m_lbox = combolbox; |
261 | m_lbox->Set(n, choices); | |
262 | ||
a290fa5a | 263 | return true; |
1e6feb95 VZ |
264 | } |
265 | ||
266 | wxComboBox::~wxComboBox() | |
267 | { | |
268 | } | |
269 | ||
270 | // ---------------------------------------------------------------------------- | |
271 | // wxComboBox methods forwarded to wxTextCtrl | |
272 | // ---------------------------------------------------------------------------- | |
273 | ||
274 | wxString wxComboBox::GetValue() const | |
275 | { | |
a57d600f | 276 | return wxComboCtrl::GetValue(); |
1e6feb95 VZ |
277 | } |
278 | ||
279 | void wxComboBox::SetValue(const wxString& value) | |
280 | { | |
a57d600f | 281 | wxComboCtrl::SetValue(value); |
1e6feb95 VZ |
282 | } |
283 | ||
284 | void wxComboBox::Copy() | |
285 | { | |
a340b80d | 286 | if ( GetTextCtrl() ) GetTextCtrl()->Copy(); |
1e6feb95 VZ |
287 | } |
288 | ||
289 | void wxComboBox::Cut() | |
290 | { | |
a340b80d | 291 | if ( GetTextCtrl() ) GetTextCtrl()->Cut(); |
1e6feb95 VZ |
292 | } |
293 | ||
294 | void wxComboBox::Paste() | |
295 | { | |
a340b80d | 296 | if ( GetTextCtrl() ) GetTextCtrl()->Paste(); |
1e6feb95 VZ |
297 | } |
298 | ||
299 | void wxComboBox::SetInsertionPoint(long pos) | |
300 | { | |
a340b80d | 301 | if ( GetTextCtrl() ) GetTextCtrl()->SetInsertionPoint(pos); |
1e6feb95 VZ |
302 | } |
303 | ||
304 | void wxComboBox::SetInsertionPointEnd() | |
305 | { | |
a340b80d | 306 | if ( GetTextCtrl() ) GetTextCtrl()->SetInsertionPointEnd(); |
1e6feb95 VZ |
307 | } |
308 | ||
309 | long wxComboBox::GetInsertionPoint() const | |
310 | { | |
a340b80d VZ |
311 | if ( GetTextCtrl() ) |
312 | return GetTextCtrl()->GetInsertionPoint(); | |
313 | return -1; | |
1e6feb95 VZ |
314 | } |
315 | ||
7d8268a1 | 316 | wxTextPos wxComboBox::GetLastPosition() const |
1e6feb95 | 317 | { |
a340b80d VZ |
318 | if ( GetTextCtrl() ) |
319 | return GetTextCtrl()->GetLastPosition(); | |
320 | return -1; | |
1e6feb95 VZ |
321 | } |
322 | ||
323 | void wxComboBox::Replace(long from, long to, const wxString& value) | |
324 | { | |
a340b80d | 325 | if ( GetTextCtrl() ) GetTextCtrl()->Replace(from, to, value); |
1e6feb95 VZ |
326 | } |
327 | ||
328 | void wxComboBox::Remove(long from, long to) | |
329 | { | |
a340b80d | 330 | if ( GetTextCtrl() ) GetTextCtrl()->Remove(from, to); |
1e6feb95 VZ |
331 | } |
332 | ||
333 | void wxComboBox::SetSelection(long from, long to) | |
334 | { | |
a340b80d | 335 | if ( GetTextCtrl() ) GetTextCtrl()->SetSelection(from, to); |
1e6feb95 VZ |
336 | } |
337 | ||
338 | void wxComboBox::SetEditable(bool editable) | |
339 | { | |
a340b80d | 340 | if ( GetTextCtrl() ) GetTextCtrl()->SetEditable(editable); |
1e6feb95 VZ |
341 | } |
342 | ||
343 | // ---------------------------------------------------------------------------- | |
344 | // wxComboBox methods forwarded to wxListBox | |
345 | // ---------------------------------------------------------------------------- | |
346 | ||
347 | void wxComboBox::Clear() | |
348 | { | |
349 | GetLBox()->Clear(); | |
a340b80d | 350 | if ( GetTextCtrl() ) GetTextCtrl()->SetValue(wxEmptyString); |
1e6feb95 VZ |
351 | } |
352 | ||
aa61d352 | 353 | void wxComboBox::Delete(unsigned int n) |
1e6feb95 | 354 | { |
8228b893 | 355 | wxCHECK_RET( IsValid(n), _T("invalid index in wxComboBox::Delete") ); |
48aa18c0 | 356 | |
aa61d352 | 357 | if (GetSelection() == (int)n) |
a340b80d | 358 | if ( GetTextCtrl() ) GetTextCtrl()->SetValue(wxEmptyString); |
48aa18c0 | 359 | |
1e6feb95 VZ |
360 | GetLBox()->Delete(n); |
361 | } | |
362 | ||
aa61d352 | 363 | unsigned int wxComboBox::GetCount() const |
1e6feb95 VZ |
364 | { |
365 | return GetLBox()->GetCount(); | |
366 | } | |
367 | ||
aa61d352 | 368 | wxString wxComboBox::GetString(unsigned int n) const |
1e6feb95 | 369 | { |
8228b893 | 370 | wxCHECK_MSG( IsValid(n), wxEmptyString, _T("invalid index in wxComboBox::GetString") ); |
48aa18c0 | 371 | |
1e6feb95 VZ |
372 | return GetLBox()->GetString(n); |
373 | } | |
374 | ||
aa61d352 | 375 | void wxComboBox::SetString(unsigned int n, const wxString& s) |
1e6feb95 | 376 | { |
8228b893 | 377 | wxCHECK_RET( IsValid(n), _T("invalid index in wxComboBox::SetString") ); |
48aa18c0 | 378 | |
1e6feb95 VZ |
379 | GetLBox()->SetString(n, s); |
380 | } | |
381 | ||
11e62fe6 | 382 | int wxComboBox::FindString(const wxString& s, bool bCase) const |
1e6feb95 | 383 | { |
11e62fe6 | 384 | return GetLBox()->FindString(s, bCase); |
1e6feb95 VZ |
385 | } |
386 | ||
c6179a84 | 387 | void wxComboBox::SetSelection(int n) |
1e6feb95 | 388 | { |
8228b893 | 389 | wxCHECK_RET( IsValid(n), _T("invalid index in wxComboBox::Select") ); |
1e6feb95 VZ |
390 | |
391 | GetLBox()->SetSelection(n); | |
a340b80d | 392 | if ( GetTextCtrl() ) GetTextCtrl()->SetValue(GetLBox()->GetString(n)); |
1e6feb95 VZ |
393 | } |
394 | ||
395 | int wxComboBox::GetSelection() const | |
396 | { | |
48aa18c0 | 397 | #if 1 // FIXME:: What is the correct behavior? |
1e6feb95 | 398 | // if the current value isn't one of the listbox strings, return -1 |
48aa18c0 | 399 | return GetLBox()->GetSelection(); |
150e31d2 JS |
400 | #else |
401 | // Why oh why is this done this way? | |
402 | // It is not because the value displayed in the text can be found | |
48aa18c0 | 403 | // in the list that it is the item that is selected! |
a340b80d | 404 | return FindString(if ( GetTextCtrl() ) GetTextCtrl()->GetValue()); |
48aa18c0 | 405 | #endif |
1e6feb95 VZ |
406 | } |
407 | ||
408 | int wxComboBox::DoAppend(const wxString& item) | |
409 | { | |
410 | return GetLBox()->Append(item); | |
411 | } | |
412 | ||
aa61d352 | 413 | int wxComboBox::DoInsert(const wxString& item, unsigned int pos) |
243dbf1a VZ |
414 | { |
415 | wxCHECK_MSG(!(GetWindowStyle() & wxCB_SORT), -1, wxT("can't insert into sorted list")); | |
8228b893 | 416 | wxCHECK_MSG(IsValidInsert(pos), -1, wxT("invalid index")); |
243dbf1a | 417 | |
aa61d352 | 418 | if (pos == GetCount()) |
243dbf1a VZ |
419 | return DoAppend(item); |
420 | ||
3f85391e | 421 | GetLBox()->Insert(item, pos); |
243dbf1a VZ |
422 | return pos; |
423 | } | |
424 | ||
aa61d352 | 425 | void wxComboBox::DoSetItemClientData(unsigned int n, void* clientData) |
1e6feb95 VZ |
426 | { |
427 | GetLBox()->SetClientData(n, clientData); | |
428 | } | |
429 | ||
aa61d352 | 430 | void *wxComboBox::DoGetItemClientData(unsigned int n) const |
1e6feb95 VZ |
431 | { |
432 | return GetLBox()->GetClientData(n); | |
433 | } | |
434 | ||
aa61d352 | 435 | void wxComboBox::DoSetItemClientObject(unsigned int n, wxClientData* clientData) |
1e6feb95 VZ |
436 | { |
437 | GetLBox()->SetClientObject(n, clientData); | |
438 | } | |
439 | ||
aa61d352 | 440 | wxClientData* wxComboBox::DoGetItemClientObject(unsigned int n) const |
1e6feb95 VZ |
441 | { |
442 | return GetLBox()->GetClientObject(n); | |
443 | } | |
444 | ||
150e31d2 JS |
445 | bool wxComboBox::IsEditable() const |
446 | { | |
a340b80d | 447 | return GetTextCtrl() != NULL && (!HasFlag(wxCB_READONLY) || GetTextCtrl()->IsEditable() ); |
150e31d2 JS |
448 | } |
449 | ||
450 | void wxComboBox::Undo() | |
451 | { | |
452 | if (IsEditable()) | |
a340b80d | 453 | if ( GetTextCtrl() ) GetTextCtrl()->Undo(); |
150e31d2 JS |
454 | } |
455 | ||
456 | void wxComboBox::Redo() | |
457 | { | |
458 | if (IsEditable()) | |
a340b80d | 459 | if ( GetTextCtrl() ) GetTextCtrl()->Redo(); |
150e31d2 JS |
460 | } |
461 | ||
462 | void wxComboBox::SelectAll() | |
463 | { | |
a340b80d | 464 | if ( GetTextCtrl() ) GetTextCtrl()->SelectAll(); |
150e31d2 JS |
465 | } |
466 | ||
467 | bool wxComboBox::CanCopy() const | |
468 | { | |
a340b80d VZ |
469 | if (GetTextCtrl() != NULL) |
470 | return GetTextCtrl()->CanCopy(); | |
150e31d2 JS |
471 | else |
472 | return false; | |
473 | } | |
474 | ||
475 | bool wxComboBox::CanCut() const | |
476 | { | |
a340b80d VZ |
477 | if (GetTextCtrl() != NULL) |
478 | return GetTextCtrl()->CanCut(); | |
150e31d2 JS |
479 | else |
480 | return false; | |
481 | } | |
482 | ||
483 | bool wxComboBox::CanPaste() const | |
484 | { | |
485 | if (IsEditable()) | |
a340b80d | 486 | return GetTextCtrl()->CanPaste(); |
150e31d2 JS |
487 | else |
488 | return false; | |
489 | } | |
490 | ||
491 | bool wxComboBox::CanUndo() const | |
492 | { | |
493 | if (IsEditable()) | |
a340b80d | 494 | return GetTextCtrl()->CanUndo(); |
150e31d2 JS |
495 | else |
496 | return false; | |
497 | } | |
498 | ||
499 | bool wxComboBox::CanRedo() const | |
500 | { | |
501 | if (IsEditable()) | |
a340b80d | 502 | return GetTextCtrl()->CanRedo(); |
150e31d2 JS |
503 | else |
504 | return false; | |
505 | } | |
506 | ||
507 | ||
1e6feb95 VZ |
508 | // ---------------------------------------------------------------------------- |
509 | // wxStdComboBoxInputHandler | |
510 | // ---------------------------------------------------------------------------- | |
511 | ||
512 | wxStdComboBoxInputHandler::wxStdComboBoxInputHandler(wxInputHandler *inphand) | |
513 | : wxStdInputHandler(inphand) | |
514 | { | |
515 | } | |
516 | ||
23645bfa | 517 | bool wxStdComboBoxInputHandler::HandleKey(wxInputConsumer *consumer, |
1e6feb95 VZ |
518 | const wxKeyEvent& event, |
519 | bool pressed) | |
520 | { | |
521 | if ( pressed ) | |
522 | { | |
523 | wxControlAction action; | |
524 | switch ( event.GetKeyCode() ) | |
525 | { | |
526 | case WXK_DOWN: | |
527 | action = wxACTION_COMBOBOX_POPUP; | |
528 | break; | |
529 | ||
530 | case WXK_ESCAPE: | |
531 | action = wxACTION_COMBOBOX_DISMISS; | |
532 | break; | |
533 | } | |
534 | ||
a290fa5a | 535 | if ( !action.IsEmpty() ) |
1e6feb95 | 536 | { |
23645bfa | 537 | consumer->PerformAction(action); |
1e6feb95 | 538 | |
a290fa5a | 539 | return true; |
1e6feb95 VZ |
540 | } |
541 | } | |
542 | ||
23645bfa | 543 | return wxStdInputHandler::HandleKey(consumer, event, pressed); |
1e6feb95 VZ |
544 | } |
545 | ||
9467bdb7 VZ |
546 | /* static */ |
547 | wxInputHandler *wxComboBox::GetStdInputHandler(wxInputHandler *handlerDef) | |
548 | { | |
549 | static wxStdComboBoxInputHandler s_handler(handlerDef); | |
550 | ||
551 | return &s_handler; | |
552 | } | |
a340b80d | 553 | |
1e6feb95 | 554 | #endif // wxUSE_COMBOBOX |