Hello,
If a window is not a child window of wxAuiNotebook then calling wxAuiNotebook::AddPage(window) / InsertPage(window) results in inconsistent state – GetParent() for the child window will still return the old value, but the notebook will try to manage it as its own child.
Adding the following line
page->Reparent(this);
to wxAuiNotebook::InsertPage() should fix the problem.
This issues is also submitted to wxWidgets bug tracker
https://sourceforge.net/tracker/index.p ... tid=109863
Andrey Yazhuk
Kirix Support Forums
wxAuiNotebook::InsertPage() do not update the parent of the
2 posts
• Page 1 of 1
- andrey_yazhuk
- Registered User
- Posts: 4
- Joined: Tue Aug 07, 2007 4:01 pm
Re: wxAuiNotebook::InsertPage() do not update the parent of the
Hi,
Yes, this sounds like a good idea. Thanks for the recommendation.
Best,
Ben
Yes, this sounds like a good idea. Thanks for the recommendation.
Best,
Ben
Ben Williams
Kirix Support Team
Kirix Support Team
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
2 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback