X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc5414a1c6c55fcf9fd7f5bffb09b9b9eaf1d4bf..2f35f36bbcde256c802a4e0871c3d74e39ee476c:/src/generic/numdlgg.cpp diff --git a/src/generic/numdlgg.cpp b/src/generic/numdlgg.cpp index 2cbcc03ac1..b5e06f98d6 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, @@ -80,8 +82,7 @@ wxNumberEntryDialog::wxNumberEntryDialog(wxWindow *parent, long max, const wxPoint& pos) : wxDialog(parent, -1, caption, - pos, wxDefaultSize, - wxDEFAULT_DIALOG_STYLE | wxDIALOG_MODAL ) + pos, wxDefaultSize) { m_value = value; m_max = max; @@ -103,7 +104,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 );