]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/univ/choice.h
fixed warnings after GetFont prototype change
[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// RCS-ID: $Id$
8// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_CHOICE_H_
13#define _WX_UNIV_CHOICE_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "univchoice.h"
17#endif
18
19#include "wx/combobox.h"
20
21// VS: This is only a *temporary* implementation, real wxChoice should not
22// derive from wxComboBox and may have different l&f
23class WXDLLEXPORT wxChoice : public wxComboBox
24{
25public:
26 wxChoice() {}
27 wxChoice(wxWindow *parent, wxWindowID id,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 int n = 0, const wxString choices[] = (const wxString *) NULL,
31 long style = 0,
32 const wxValidator& validator = wxDefaultValidator,
33 const wxString& name = wxChoiceNameStr)
34 {
35 Create(parent, id, pos, size, n, choices, style, validator, name);
36 }
37 wxChoice(wxWindow *parent, wxWindowID id,
38 const wxPoint& pos,
39 const wxSize& size,
40 const wxArrayString& choices,
41 long style = 0,
42 const wxValidator& validator = wxDefaultValidator,
43 const wxString& name = wxChoiceNameStr);
44
45 bool Create(wxWindow *parent, wxWindowID id,
46 const wxPoint& pos = wxDefaultPosition,
47 const wxSize& size = wxDefaultSize,
48 int n = 0, const wxString choices[] = (wxString *) NULL,
49 long style = 0,
50 const wxValidator& validator = wxDefaultValidator,
51 const wxString& name = wxChoiceNameStr);
52 bool Create(wxWindow *parent, wxWindowID id,
53 const wxPoint& pos,
54 const wxSize& size,
55 const wxArrayString& choices,
56 long style = 0,
57 const wxValidator& validator = wxDefaultValidator,
58 const wxString& name = wxChoiceNameStr);
59
60private:
61 void OnComboBox(wxCommandEvent &event);
62
63 DECLARE_EVENT_TABLE()
64 DECLARE_DYNAMIC_CLASS(wxChoice)
65};
66
67
68#endif // _WX_UNIV_CHOICE_H_