fixed bug: wxButton hasn't name set correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2000-08-11 19:07:30 +00:00
parent 909e23737c
commit ef02ad9ee7

View File

@ -29,8 +29,9 @@ wxObject *wxButtonXmlHandler::DoCreateResource()
GetID(),
GetText(_T("label")),
GetPosition(), GetSize(),
GetStyle());
button->SetName(GetName());
GetStyle(),
wxDefaultValidator,
GetName());
if (GetBool(_T("default"), 0) == 1) button->SetDefault();
SetupWindow(button);