]> git.saurik.com Git - wxWidgets.git/commitdiff
Mention that wxNotebook page must be removed before reparenting it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jul 2011 23:37:09 +0000 (23:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Jul 2011 23:37:09 +0000 (23:37 +0000)
At least in wxGTK it is necessary to remove the page from the notebook first
as reparenting it doesn't work otherwise currently.

This should ideally be fixed but in the meanwhile at least document it.

See #13305.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/window.h

index 6a13cadcfd35b1038140850394d172d9f8c63f4a..2bc1c680b71da91f721315e4f80e2c93b2b2e47a 100644 (file)
@@ -495,6 +495,9 @@ public:
         current parent window (e.g. a non-standard toolbar in a wxFrame)
         and then re-inserted into another.
 
+        Notice that currently you need to explicitly call
+        wxNotebook::RemovePage() before reparenting a notebook page.
+
         @param newParent
             New parent.
     */