From 70ce74ed4ae85d965101cdf786277965159d0f40 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 6 Jul 2021 00:40:53 -0400 Subject: [PATCH] Configure page and line size in STEPPED_SLIDER --- common/widgets/stepped_slider.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/widgets/stepped_slider.cpp b/common/widgets/stepped_slider.cpp index 7d0977df1b..3020a34640 100644 --- a/common/widgets/stepped_slider.cpp +++ b/common/widgets/stepped_slider.cpp @@ -47,6 +47,12 @@ void STEPPED_SLIDER::SetStep( int aSize ) wxASSERT( aSize > 0 ); m_step = ( aSize > 0 ) ? aSize : 1; + // configure pg up/down to increment by our steps + SetPageSize( aSize ); + + //configure arrows to incrment by our steps + SetLineSize( aSize ); + #ifdef __WXMSW__ ClearTicks();