]> git.saurik.com Git - wxWidgets.git/blame - src/common/choiccmn.cpp
PCH-less compilation fix
[wxWidgets.git] / src / common / choiccmn.cpp
CommitLineData
2d61b48d 1/////////////////////////////////////////////////////////////////////////////
b36e08d0 2// Name: src/common/choiccmn.cpp
2d61b48d
VZ
3// Purpose: common (to all ports) wxChoice functions
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 26.07.99
7// RCS-ID: $Id$
77ffb593 8// Copyright: (c) wxWidgets team
65571936 9// Licence: wxWindows licence
2d61b48d
VZ
10/////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// declarations
14// ============================================================================
15
16// ----------------------------------------------------------------------------
17// headers
18// ----------------------------------------------------------------------------
19
2d61b48d
VZ
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
1e6feb95
VZ
27#if wxUSE_CHOICE
28
b36e08d0
WS
29#include "wx/choice.h"
30
2d61b48d 31#ifndef WX_PRECOMP
2d61b48d
VZ
32#endif
33
f36e602b 34const char wxChoiceNameStr[] = "choice";
e7445ff8 35
2d61b48d
VZ
36// ============================================================================
37// implementation
38// ============================================================================
39
05689a13
WS
40wxChoiceBase::~wxChoiceBase()
41{
42 // this destructor is required for Darwin
43}
44
2d61b48d 45// ----------------------------------------------------------------------------
6c8a980f 46// misc
2d61b48d
VZ
47// ----------------------------------------------------------------------------
48
6c8a980f 49void wxChoiceBase::Command(wxCommandEvent& event)
2d61b48d 50{
687706f5 51 SetSelection(event.GetInt());
6c8a980f 52 (void)ProcessEvent(event);
2d61b48d 53}
1e6feb95
VZ
54
55#endif // wxUSE_CHOICE