]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/choice.h
show the function in which the assert failure occured if the compiler supports it
[wxWidgets.git] / include / wx / univ / choice.h
CommitLineData
926592a8
VS
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)
65571936 9// Licence: wxWindows licence
926592a8
VS
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_CHOICE_H_
13#define _WX_UNIV_CHOICE_H_
14
926592a8
VS
15#include "wx/combobox.h"
16
17// VS: This is only a *temporary* implementation, real wxChoice should not
18// derive from wxComboBox and may have different l&f
19class WXDLLEXPORT wxChoice : public wxComboBox
20{
21public:
6463b9f5 22 wxChoice() {}
926592a8
VS
23 wxChoice(wxWindow *parent, wxWindowID id,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 int n = 0, const wxString choices[] = (const wxString *) NULL,
27 long style = 0,
28 const wxValidator& validator = wxDefaultValidator,
6463b9f5
JS
29 const wxString& name = wxChoiceNameStr)
30 {
31 Create(parent, id, pos, size, n, choices, style, validator, name);
32 }
584ad2a3
MB
33 wxChoice(wxWindow *parent, wxWindowID id,
34 const wxPoint& pos,
35 const wxSize& size,
36 const wxArrayString& choices,
37 long style = 0,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxChoiceNameStr);
926592a8
VS
40
41 bool Create(wxWindow *parent, wxWindowID id,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 int n = 0, const wxString choices[] = (wxString *) NULL,
45 long style = 0,
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxChoiceNameStr);
584ad2a3
MB
48 bool Create(wxWindow *parent, wxWindowID id,
49 const wxPoint& pos,
50 const wxSize& size,
51 const wxArrayString& choices,
52 long style = 0,
53 const wxValidator& validator = wxDefaultValidator,
54 const wxString& name = wxChoiceNameStr);
926592a8 55
926592a8
VS
56private:
57 void OnComboBox(wxCommandEvent &event);
58
59 DECLARE_EVENT_TABLE()
60 DECLARE_DYNAMIC_CLASS(wxChoice)
61};
62
63
64#endif // _WX_UNIV_CHOICE_H_