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