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

Define and use ShuttleGui::Focus

This commit is contained in:
Paul Licameli
2018-01-27 22:36:34 -05:00
parent 30d375d6fa
commit c72dbf5b51
8 changed files with 25 additions and 13 deletions

View File

@@ -192,7 +192,7 @@ void HelpSystem::ShowHtmlText(wxWindow *pParent,
else
html->SetPage( HtmlText);
S.Prop(1).AddWindow( html, wxEXPAND );
S.Prop(1).Focus().AddWindow( html, wxEXPAND );
S.Id( wxID_CANCEL ).AddButton( _("Close"), wxALIGN_CENTER, true );
}
@@ -228,7 +228,6 @@ void HelpSystem::ShowHtmlText(wxWindow *pParent,
}
html->SetRelatedStatusBar( 0 );
html->SetFocus();
return;
}