no message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-10-13 20:35:03 +00:00
parent a17e237f4a
commit 634157786d
8 changed files with 1567 additions and 194 deletions

View File

@@ -50,9 +50,11 @@ void wxButton::SetSize(int x, int y, int width, int height, int sizeFlags)
void wxButton::SetDefault()
{
wxWindow *parent = (wxWindow *)GetParent();
if (parent)
parent->SetDefaultItem(this);
wxWindow *parent = GetParent();
wxButton *btnOldDefault = NULL;
wxPanel *panel = wxDynamicCast(parent, wxPanel);
if (panel)
panel->SetDefaultItem(this);
// TODO: make button the default
}