Made wxNO_DEFAULT set the "no" button as the default, according to the docs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-09-10 17:57:47 +00:00
parent e91a9dfcc3
commit b730516c98

View File

@@ -148,7 +148,15 @@ wxSizer *wxDialogBase::CreateButtonSizer( long flags )
box->Add( cancel, 0, wxLEFT|wxRIGHT, margin );
}
if ((flags & wxNO_DEFAULT) == 0)
if (flags & wxNO_DEFAULT)
{
if (no)
{
no->SetDefault();
no->SetFocus();
}
}
else
{
if (ok)
{