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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user