1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-25 07:35:44 +01:00

Define and use ShuttleGui::Disable; remove EnableCtrl

This commit is contained in:
Paul Licameli
2019-11-19 11:34:36 -05:00
parent c72dbf5b51
commit d98e41aad1
12 changed files with 85 additions and 81 deletions

View File

@@ -89,10 +89,12 @@ void MacroCommandDialog::PopulateOrExchange(ShuttleGui &S)
S.SetStretchyCol(1);
mCommand = S.AddTextBox(_("&Command"), wxT(""), 20);
mCommand->SetEditable(false);
mEditParams = S.Id(EditParamsButtonID).AddButton(_("&Edit Parameters"));
mEditParams->Enable(false); // disable button as box is empty
mUsePreset = S.Id(UsePresetButtonID).AddButton(_("&Use Preset"));
mUsePreset->Enable(false); // disable button as box is empty
mEditParams = S.Id(EditParamsButtonID)
.Disable() // disable button as box is empty
.AddButton(_("&Edit Parameters"));
mUsePreset = S.Id(UsePresetButtonID)
.Disable() // disable button as box is empty
.AddButton(_("&Use Preset"));
}
S.EndMultiColumn();