]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/numdlgg.cpp
switched to wxLocale usage for string encoding
[wxWidgets.git] / src / generic / numdlgg.cpp
index e9ef27266a675f93e470c75a0c17852023357287..b5e06f98d6b25296f1c75e7d720c14337943b710 100644 (file)
@@ -46,7 +46,7 @@
   #include "wx/statline.h"
 #endif
 
-#if !defined(__WIN16__) && wxUSE_SPINCTRL
+#if wxUSE_SPINCTRL
 #include "wx/spinctrl.h"
 #endif
 
@@ -82,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;
@@ -105,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 );