1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

Keep focus on Expand/Shrink button when resizing Macro Dialog.

This commit is contained in:
James Crook
2018-03-05 15:13:42 +00:00
parent 6b44a53de9
commit 4c5e1f30fd
2 changed files with 4 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ void ApplyMacroDialog::PopulateOrExchange(ShuttleGui &S)
S.StartHorizontalLay(wxALIGN_RIGHT, false);
{
S.Id(ExpandID).AddButton(_("&Expand"));
mResize = S.Id(ExpandID).AddButton(_("&Expand"));
}
S.EndHorizontalLay();
@@ -589,7 +589,7 @@ void MacrosWindow::PopulateOrExchange(ShuttleGui & S)
{
S.Prop(0).StartHorizontalLay(wxALIGN_RIGHT, false);
{
S.Id(ShrinkID).AddButton(_("Shrin&k"));
mResize = S.Id(ShrinkID).AddButton(_("Shrin&k"));
}
S.EndHorizontalLay();
S.StartStatic(_("&Select Macro"),1);
@@ -740,6 +740,7 @@ void MacrosWindow::UpdateDisplay( bool bExpanded )
else
ApplyMacroDialog::Populate();
SetPosition( p );
mResize->SetFocus();
wxString Title = mbExpanded ? _("Edit Macros") : _("Apply Macro");
SetLabel( Title ); // Provide visual label