unknown controls container can't be subclassed, assert if somebody tries it (as does DialogsBlock)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,6 +87,9 @@ wxUnknownWidgetXmlHandler::wxUnknownWidgetXmlHandler()
|
||||
|
||||
wxObject *wxUnknownWidgetXmlHandler::DoCreateResource()
|
||||
{
|
||||
wxASSERT_MSG( m_instance == NULL,
|
||||
_T("'unknown' controls can't be subclassed, use wxXmlResource::AttachUnknownControl") );
|
||||
|
||||
wxPanel *panel =
|
||||
new wxUnknownControlContainer(m_parentAsWindow,
|
||||
GetName(), -1,
|
||||
|
@@ -87,6 +87,9 @@ wxUnknownWidgetXmlHandler::wxUnknownWidgetXmlHandler()
|
||||
|
||||
wxObject *wxUnknownWidgetXmlHandler::DoCreateResource()
|
||||
{
|
||||
wxASSERT_MSG( m_instance == NULL,
|
||||
_T("'unknown' controls can't be subclassed, use wxXmlResource::AttachUnknownControl") );
|
||||
|
||||
wxPanel *panel =
|
||||
new wxUnknownControlContainer(m_parentAsWindow,
|
||||
GetName(), -1,
|
||||
|
Reference in New Issue
Block a user