fixed ID handling in 'unknown' handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9c9fc51ba7
commit
1a3cb2caf8
@ -57,6 +57,7 @@ void wxUnknownControlContainer::AddChild(wxWindowBase *child)
|
||||
|
||||
SetBackgroundColour(m_bg);
|
||||
child->SetName(m_controlName);
|
||||
child->SetId(XMLID(m_controlName));
|
||||
m_controlAdded = TRUE;
|
||||
|
||||
wxSizer *sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
@ -77,7 +78,7 @@ wxObject *wxUnknownWidgetXmlHandler::DoCreateResource()
|
||||
{
|
||||
wxPanel *panel =
|
||||
new wxUnknownControlContainer(m_parentAsWindow,
|
||||
GetName(), GetID(),
|
||||
GetName(), -1,
|
||||
GetPosition(), GetSize());
|
||||
SetupWindow(panel);
|
||||
return panel;
|
||||
|
Loading…
Reference in New Issue
Block a user