mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-06 06:31:07 +01:00
ShuttleGui lets you specify whether a button is default. Use that.
This commit is contained in:
@@ -140,10 +140,11 @@ void SplashDialog::Populate( ShuttleGui & S )
|
||||
{
|
||||
S.SetBorder( 5 );
|
||||
S.Id( DontShowID).AddCheckBox( _("Don't show this again at start up"), !bShow );
|
||||
wxButton *ok = safenew wxButton(S.GetParent(), wxID_OK);
|
||||
ok->SetDefault();
|
||||
S.SetBorder( 5 );
|
||||
S.Prop(0).AddWindow( ok, wxALIGN_RIGHT| wxALL );
|
||||
|
||||
S.Id(wxID_OK)
|
||||
.Prop(0)
|
||||
.AddButton(_("OK"), wxALIGN_RIGHT| wxALL, true);
|
||||
}
|
||||
S.EndVerticalLay();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user