mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Define and use ShuttleGui::Name and NameSuffix...
... For radio buttons, the name will default to the same as the prompt if not otherwise specified
This commit is contained in:
@@ -101,11 +101,12 @@ void MacroCommandDialog::PopulateOrExchange(ShuttleGui &S)
|
||||
S.SetStretchyCol(1);
|
||||
mParameters = S.AddTextBox(_("&Parameters"), wxT(""), 0);
|
||||
mParameters->SetEditable(false);
|
||||
wxString prompt{_("&Details")};
|
||||
S.Prop(0).AddPrompt(prompt);
|
||||
mDetails = S.AddTextWindow( wxT(""));
|
||||
auto prompt = XO("&Details");
|
||||
S.Prop(0).AddPrompt(prompt.Translation());
|
||||
mDetails = S
|
||||
.Name( prompt )
|
||||
.AddTextWindow( wxT(""));
|
||||
mDetails->SetEditable(false);
|
||||
mDetails->SetName(wxStripMenuCodes(prompt));
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user