const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS | wxTE_RIGHT,
+ long style = wxSP_ARROW_KEYS | wxALIGN_RIGHT,
double min = 0, double max = 100, double initial = 0,
double inc = 1,
- const wxString& name = _T("wxSpinCtrl"));
+ const wxString& name = wxT("wxSpinCtrl"));
virtual ~wxSpinCtrlGenericBase();
const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS | wxTE_RIGHT,
+ long style = wxSP_ARROW_KEYS | wxALIGN_RIGHT,
double min = 0, double max = 100, double initial = 0,
double inc = 1,
- const wxString& name = _T("wxSpinCtrl"))
+ const wxString& name = wxT("wxSpinCtrl"))
{
m_min = min;
m_max = max;
const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS | wxTE_RIGHT,
+ long style = wxSP_ARROW_KEYS | wxALIGN_RIGHT,
int min = 0, int max = 100, int initial = 0,
- const wxString& name = _T("wxSpinCtrl"))
+ const wxString& name = wxT("wxSpinCtrl"))
{
Create(parent, id, value, pos, size, style, min, max, initial, name);
}
const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS | wxTE_RIGHT,
+ long style = wxSP_ARROW_KEYS | wxALIGN_RIGHT,
int min = 0, int max = 100, int initial = 0,
- const wxString& name = _T("wxSpinCtrl"))
+ const wxString& name = wxT("wxSpinCtrl"))
{
return wxSpinCtrlGenericBase::Create(parent, id, value, pos, size,
style, min, max, initial, 1, name);
}
// accessors
- int GetValue(wxSPINCTRL_GETVALUE_FIX) const
- { return wxRound( DoGetValue() ); }
- int GetMin() const { return wxRound( m_min ); }
- int GetMax() const { return wxRound( m_max ); }
- int GetIncrement() const { return wxRound( m_increment ); }
+ int GetValue(wxSPINCTRL_GETVALUE_FIX) const { return int(DoGetValue()); }
+ int GetMin() const { return int(m_min); }
+ int GetMax() const { return int(m_max); }
+ int GetIncrement() const { return int(m_increment); }
// operations
void SetValue(const wxString& value)
{ wxSpinCtrlGenericBase::SetValue(value); }
void SetValue( int value ) { DoSetValue(value); }
void SetRange( int minVal, int maxVal ) { DoSetRange(minVal, maxVal); }
- void SetIncrement( double inc ) { DoSetIncrement(inc); }
+ void SetIncrement(int inc) { DoSetIncrement(inc); }
protected:
virtual void DoSendEvent();
-private:
DECLARE_DYNAMIC_CLASS(wxSpinCtrl)
};
const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS | wxTE_RIGHT,
+ long style = wxSP_ARROW_KEYS | wxALIGN_RIGHT,
double min = 0, double max = 100, double initial = 0,
double inc = 1,
- const wxString& name = _T("wxSpinCtrlDouble"))
+ const wxString& name = wxT("wxSpinCtrlDouble"))
{
m_digits = 0;
Create(parent, id, value, pos, size, style,
const wxString& value = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_ARROW_KEYS | wxTE_RIGHT,
+ long style = wxSP_ARROW_KEYS | wxALIGN_RIGHT,
double min = 0, double max = 100, double initial = 0,
double inc = 1,
- const wxString& name = _T("wxSpinCtrlDouble"))
+ const wxString& name = wxT("wxSpinCtrlDouble"))
{
return wxSpinCtrlGenericBase::Create(parent, id, value, pos, size,
style, min, max, initial,
unsigned m_digits;
-private:
DECLARE_DYNAMIC_CLASS(wxSpinCtrlDouble)
};