[wx-dev] Re: #10658: Prevent wxStaticBox from being used as a parent

0 views
Skip to first unread message

wxTrac

unread,
Apr 19, 2009, 2:35:14 PM4/19/09
to wx-...@lists.wxwidgets.org
Ticket URL: <http://trac.wxwidgets.org/ticket/10658#comment:2>

#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>

wxTrac

unread,
Nov 6, 2009, 1:22:28 AM11/6/09
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/10658#comment:3>

#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>

Reply all
Reply to author
Forward
0 new messages