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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user