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:
@@ -100,6 +100,7 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
|
|||||||
GetSize(),
|
GetSize(),
|
||||||
style,
|
style,
|
||||||
GetName());
|
GetName());
|
||||||
|
SetupWindow(toolbar);
|
||||||
|
|
||||||
wxSize bmpsize = GetSize(wxT("bitmapsize"));
|
wxSize bmpsize = GetSize(wxT("bitmapsize"));
|
||||||
if (!(bmpsize == wxDefaultSize))
|
if (!(bmpsize == wxDefaultSize))
|
||||||
@@ -113,8 +114,6 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
|
|||||||
long separation = GetLong(wxT("separation"), -1);
|
long separation = GetLong(wxT("separation"), -1);
|
||||||
if (separation != -1)
|
if (separation != -1)
|
||||||
toolbar->SetToolSeparation(separation);
|
toolbar->SetToolSeparation(separation);
|
||||||
if (HasParam(wxT("bg")))
|
|
||||||
toolbar->SetBackgroundColour(GetColour(wxT("bg")));
|
|
||||||
|
|
||||||
wxXmlNode *children_node = GetParamNode(wxT("object"));
|
wxXmlNode *children_node = GetParamNode(wxT("object"));
|
||||||
if (!children_node)
|
if (!children_node)
|
||||||
|
Reference in New Issue
Block a user