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:
Václav Slavík 2001-05-22 22:03:24 +00:00
parent 9c9fc51ba7
commit 1a3cb2caf8

View File

@ -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;