#ifndef _WX_GENERIC_SPINCTRL_H_
#define _WX_GENERIC_SPINCTRL_H_
+#ifdef __GNUG__
+ #pragma interface "spinctlg.h"
+#endif
+
#include "wx/textctrl.h"
// ----------------------------------------------------------------------------
{
SetRange(min, max);
- bool val = wxTextCtrl::Create(parent, id, value, pos, size, style,
- wxDefaultValidator, name);
+ bool ok = wxTextCtrl::Create(parent, id, value, pos, size, style,
+ wxDefaultValidator, name);
SetValue(initial);
- return value;
+
+ return ok;
}
// accessors
int m_min;
int m_max;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
};
#endif // _WX_GENERIC_SPINCTRL_H_