X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc5414a1c6c55fcf9fd7f5bffb09b9b9eaf1d4bf..46fa338b6f7462b684b2d6c694849769f75a2cf9:/src/generic/numdlgg.cpp diff --git a/src/generic/numdlgg.cpp b/src/generic/numdlgg.cpp index 2cbcc03ac1..624a2f4c7b 100644 --- a/src/generic/numdlgg.cpp +++ b/src/generic/numdlgg.cpp @@ -46,7 +46,7 @@ #include "wx/statline.h" #endif -#if !defined(__WIN16__) && wxUSE_SPINCTRL +#if wxUSE_SPINCTRL #include "wx/spinctrl.h" #endif @@ -71,6 +71,8 @@ BEGIN_EVENT_TABLE(wxNumberEntryDialog, wxDialog) EVT_BUTTON(wxID_CANCEL, wxNumberEntryDialog::OnCancel) END_EVENT_TABLE() +IMPLEMENT_CLASS(wxNumberEntryDialog, wxDialog) + wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent, const wxString& message, const wxString& prompt, @@ -103,7 +105,7 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent, wxString valStr; valStr.Printf(wxT("%ld"), m_value); m_spinctrl = new wxSpinCtrl(this, -1, valStr, wxDefaultPosition, wxSize( 140, -1 ) ); -#if !defined(__WIN16__) && wxUSE_SPINCTRL +#if wxUSE_SPINCTRL m_spinctrl->SetRange((int)m_min, (int)m_max); #endif inputsizer->Add( m_spinctrl, 1, wxCENTER | wxLEFT | wxRIGHT, 10 );