From c356cd2aa9d99c55fd13f847c2eb153bbd43799a Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Tue, 6 Jul 2021 00:06:57 -0400 Subject: [PATCH] Enable the tick marks to actually show on the STEPPED_SLIDER --- common/widgets/stepped_slider.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/widgets/stepped_slider.cpp b/common/widgets/stepped_slider.cpp index 620d53e90b..7d0977df1b 100644 --- a/common/widgets/stepped_slider.cpp +++ b/common/widgets/stepped_slider.cpp @@ -30,7 +30,9 @@ STEPPED_SLIDER::STEPPED_SLIDER( wxWindow* aParent, wxWindowID aId, int aValue, i int aMaxValue, const wxPoint& aPos, const wxSize& aSize, long aStyle, const wxValidator& aValidator, const wxString& aName ) : - wxSlider( aParent, aId, aValue, aMinValue, aMaxValue, aPos, aSize, aStyle, aValidator, + wxSlider( aParent, aId, aValue, aMinValue, aMaxValue, aPos, aSize, + ( aStyle | wxSL_AUTOTICKS | wxSL_MIN_MAX_LABELS ), + aValidator, aName ), m_step( 1 ) {}