wxToolBar XRC handler should call SetupWindow() to handle standard window properties too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-09-30 14:37:26 +00:00
parent 3b957a30bc
commit 34c6a7ebcc

View File

@@ -114,6 +114,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
GetSize(),
style,
GetName());
SetupWindow(toolbar);
wxSize bmpsize = GetSize(wxT("bitmapsize"));
if (!(bmpsize == wxDefaultSize))
@@ -127,8 +128,6 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
long separation = GetLong(wxT("separation"), -1);
if (separation != -1)
toolbar->SetToolSeparation(separation);
if (HasParam(wxT("bg")))
toolbar->SetBackgroundColour(GetColour(wxT("bg")));
wxXmlNode *children_node = GetParamNode(wxT("object"));
if (!children_node)