wxToolBar XRC handler should call SetupWindow() to handle standard window properties too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
24c7547c13
commit
623114052c
@ -100,6 +100,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
|
||||
GetSize(),
|
||||
style,
|
||||
GetName());
|
||||
SetupWindow(toolbar);
|
||||
|
||||
wxSize bmpsize = GetSize(wxT("bitmapsize"));
|
||||
if (!(bmpsize == wxDefaultSize))
|
||||
@ -113,8 +114,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)
|
||||
|
Loading…
Reference in New Issue
Block a user