common_opt_sizer->Add( caching_checkbox, 0,
wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL );
caching_value = new wxSpinCtrl( panel, CachingChange_Event );
+#ifdef WIN32 /* WIN32 uses 16 bit integer */
+ caching_value->SetRange( 0, 32767 );
+#else
caching_value->SetRange( 0, 1000000 );
+#endif
caching_value->Disable();
common_opt_sizer->Add( caching_value, 0,
wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL );
: ConfigControl( p_this, p_item, parent )
{
label = new wxStaticText(this, -1, wxU(p_item->psz_text));
-// FIXME -- Hack for nonstandard wxwin wxSpinCtrl operation under WIN32
-#ifdef WIN32
+#ifdef WIN32 //WIN32 only uses a 16 bit integer
spin = new wxSpinCtrl( this, -1,
wxString::Format(wxT("%d"),
p_item->i_value),
wxDefaultPosition, wxDefaultSize,
wxSP_ARROW_KEYS,
- 100000000, -100000000, p_item->i_value);
+ -32768,32767, p_item->i_value);
#else
spin = new wxSpinCtrl( this, -1,
wxString::Format(wxT("%d"),