added wxAPPLY and wxCLOSE flags to CreateStdDialogButtonSizer() (Marcin Wojdyr)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-14 13:17:06 +00:00
parent db56793066
commit 57d7f9888e
6 changed files with 28 additions and 8 deletions

View File

@@ -227,6 +227,18 @@ wxStdDialogButtonSizer *wxDialogBase::CreateStdDialogButtonSizer( long flags )
sizer->AddButton(no);
}
if (flags & wxAPPLY)
{
wxButton *apply = new wxButton(this, wxID_APPLY);
sizer->AddButton(apply);
}
if (flags & wxCLOSE)
{
wxButton *close = new wxButton(this, wxID_CLOSE);
sizer->AddButton(close);
}
if (flags & wxHELP)
{
wxButton *help = new wxButton(this, wxID_HELP);