mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Define and use ShuttleGui::Validator
This commit is contained in:
@@ -280,10 +280,8 @@ SliderDialog::SliderDialog(wxWindow * parent, wxWindowID id,
|
||||
|
||||
S.StartVerticalLay();
|
||||
{
|
||||
mTextCtrl = S.AddTextBox( {},
|
||||
wxEmptyString,
|
||||
15);
|
||||
mTextCtrl->SetValidator(wxTextValidator(wxFILTER_NUMERIC));
|
||||
mTextCtrl = S.Validator<wxTextValidator>(wxFILTER_NUMERIC)
|
||||
.AddTextBox( {}, wxEmptyString, 15);
|
||||
|
||||
mSlider = safenew ASlider(this,
|
||||
wxID_ANY,
|
||||
|
||||
Reference in New Issue
Block a user