30 int aMaxValue, const wxPoint& aPos, const wxSize& aSize,
31 long aStyle, const wxValidator& aValidator,
32 const wxString& aName ) :
33 wxSlider( aParent, aId, aValue, aMinValue, aMaxValue, aPos, aSize,
34 ( aStyle | wxSL_AUTOTICKS | wxSL_MIN_MAX_LABELS ),
47 wxASSERT( aSize > 0 );
48 m_step = ( aSize > 0 ) ? aSize : 1;
79 if( aEvent.GetEventType() == wxEVT_SCROLL_CHANGED )
82 const int value = GetValue();
83 const int rounded = value - value %
m_step;
Customized wxSlider with forced stepping.
int GetStep() const
Get the step size.
void OnScroll(wxScrollEvent &aEvent)
void SetStep(int aSize)
Set the step size.
virtual ~STEPPED_SLIDER()