#10658: Prevent wxStaticBox from being used as a parent
----------------------+-----------------------------------------------------
Reporter: dememax | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: GUI-all | Version: 2.8.9
Resolution: | Keywords: crash wxpython
Blockedby: | Patch: 0
Blocking: |
----------------------+-----------------------------------------------------
Comment(by frm):
There is an assert catching this problem in wincmn.cpp at line 228 in
wxWindowBase::CreateBase... maybe however adding:
{{{
virtual void AddChild(wxWindowBase* WXUNUSED(child))
{
wxFAIL_MSG("Do not add child windows to wxStaticBox; see
wxStaticBox docs");
}
}}}
in wxStaticBoxBase could help, too...
--
Ticket URL: <http://trac.wxwidgets.org/ticket/10658#comment:2>
#10658: Prevent wxStaticBox from being used as a parent
---------------------+------------------------------------------------------
Reporter: dememax | Type: defect
Status: new | Priority: normal
Milestone: | Component: GUI-all
Version: 2.8.9 | Keywords: crash wxpython
Blockedby: | Patch: 0
Blocking: |
---------------------+------------------------------------------------------
Changes (by cdleary):
* cc: cdleary@… (added)
--
Ticket URL: <http://trac.wxwidgets.org/ticket/10658#comment:3>