]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/univ/choice.h
wxDialogBase only has one ctor, so just do initialization in ctor instead of Init()
[wxWidgets.git] / include / wx / univ / choice.h
... / ...
CommitLineData
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/choice.h
3// Purpose: the universal choice
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 30.08.00
7// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIV_CHOICE_H_
12#define _WX_UNIV_CHOICE_H_
13
14#include "wx/combobox.h"
15
16// VS: This is only a *temporary* implementation, real wxChoice should not
17// derive from wxComboBox and may have different l&f
18class WXDLLIMPEXP_CORE wxChoice : public wxComboBox
19{
20public:
21 wxChoice() {}
22 wxChoice(wxWindow *parent, wxWindowID id,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 int n = 0, const wxString choices[] = (const wxString *) NULL,
26 long style = 0,
27 const wxValidator& validator = wxDefaultValidator,
28 const wxString& name = wxChoiceNameStr)
29 {
30 Create(parent, id, pos, size, n, choices, style, validator, name);
31 }
32 wxChoice(wxWindow *parent, wxWindowID id,
33 const wxPoint& pos,
34 const wxSize& size,
35 const wxArrayString& choices,
36 long style = 0,
37 const wxValidator& validator = wxDefaultValidator,
38 const wxString& name = wxChoiceNameStr);
39
40 bool Create(wxWindow *parent, wxWindowID id,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 int n = 0, const wxString choices[] = NULL,
44 long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxChoiceNameStr);
47 bool Create(wxWindow *parent, wxWindowID id,
48 const wxPoint& pos,
49 const wxSize& size,
50 const wxArrayString& choices,
51 long style = 0,
52 const wxValidator& validator = wxDefaultValidator,
53 const wxString& name = wxChoiceNameStr);
54
55private:
56 void OnComboBox(wxCommandEvent &event);
57
58 DECLARE_EVENT_TABLE()
59 DECLARE_DYNAMIC_CLASS(wxChoice)
60};
61
62
63#endif // _WX_UNIV_CHOICE_H_