1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 06:03:13 +02:00

Handle VEL_SLIDER in SliderDialog

This commit is contained in:
Leland Lucius 2021-02-14 15:55:08 -06:00
parent 7356c735ae
commit 217ba2bbec

View File

@ -297,6 +297,13 @@ SliderDialog::SliderDialog(wxWindow * parent, wxWindowID id,
&mValue, NumValidatorStyle::DEFAULT, -100.0, 100.0)
.AddTextBox({}, wxEmptyString, 15);
}
else if (style == VEL_SLIDER)
{
mTextCtrl = S
.Validator<IntegerValidator<float>>(
&mValue, NumValidatorStyle::DEFAULT, -50.0, 50.0)
.AddTextBox({}, wxEmptyString, 15);
}
else
{
mTextCtrl = S