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

Remove second argument of AddWindow(), use Position() instead

This commit is contained in:
Paul Licameli
2017-10-31 19:44:00 -04:00
parent b5ee7676fd
commit 96291c5476
22 changed files with 120 additions and 55 deletions

View File

@@ -290,7 +290,8 @@ SliderDialog::SliderDialog(wxWindow * parent, wxWindowID id,
size,
ASlider::Options{}
.Style( style ).Line( line ).Page( page ) );
S.AddWindow(mSlider, wxEXPAND);
S.Position(wxEXPAND)
.AddWindow(mSlider);
}
S.EndVerticalLay();

View File

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