mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-16 17:41:14 +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
|
||||
|
||||
@@ -66,6 +66,7 @@ class ApplyMacroDialog : public wxDialogWrapper {
|
||||
wxListCtrl *mMacros;
|
||||
MacroCommands mMacroCommands; /// Provides list of available commands.
|
||||
|
||||
wxButton *mResize;
|
||||
wxButton *mOK;
|
||||
wxButton *mCancel;
|
||||
wxTextCtrl *mResults;
|
||||
|
||||
Reference in New Issue
Block a user