documentation: add hint for reparenting a notebook page (PR #26292)

17 views
Skip to first unread message

Dietmar Schwertberger

unread,
Mar 14, 2026, 7:27:17 PM (3 days ago) Mar 14
to wx-...@googlegroups.com, Subscribed

This would have saved me an hour...
I could not see, however, where in RemoveTab the page is actually hidden.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26292

Commit Summary

  • f6d90db add hint for reparenting a notebook page

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292@github.com>

Dietmar Schwertberger

unread,
Mar 14, 2026, 7:32:17 PM (3 days ago) Mar 14
to wx-...@googlegroups.com, Push

@DietmarSchwertberger pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292/before/f6d90db0c45c738d3c77fcb1c9d6caf573eda48e/after/26e37c07953b9f1e72ae869711062dd0d620696b@github.com>

VZ

unread,
Mar 14, 2026, 7:37:28 PM (3 days ago) Mar 14
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26292)

Sure, this could be applied, but I'm a bit surprised that notebook is mentioned in Reparent() documentation at all. Maybe it would be better to mention in wxNotebook documentation that

  1. You need to RemovePage() if you want to reparent the window elsewhere.
  2. And document that RemovePage() hides it.

?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292/c4061688915@github.com>

Dietmar Schwertberger

unread,
Mar 14, 2026, 7:48:22 PM (3 days ago) Mar 14
to wx-...@googlegroups.com, Subscribed
DietmarSchwertberger left a comment (wxWidgets/wxWidgets#26292)

I think the place is the right one. I found the requirement for RemovePage when looking at Reparent. I would not have searched for RemovePage in the beginning. (It would have been fine for me to have an empty page and being able to remove the window back there when the user selects the now empty page.)

Will add the note to RemovePage.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292/c4061710819@github.com>

Dietmar Schwertberger

unread,
Mar 14, 2026, 7:54:33 PM (3 days ago) Mar 14
to wx-...@googlegroups.com, Push

@DietmarSchwertberger pushed 1 commit.

  • ad28ac8 add hint also to RemovePage


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292/before/26e37c07953b9f1e72ae869711062dd0d620696b/after/ad28ac88f9a000b8e653632f26282a031cd0b670@github.com>

Dietmar Schwertberger

unread,
Mar 14, 2026, 7:59:26 PM (3 days ago) Mar 14
to wx-...@googlegroups.com, Subscribed
DietmarSchwertberger left a comment (wxWidgets/wxWidgets#26292)

Yes, the hint could be added to the notebook AddPage documentation.
I would suggest not to do this, though. Reparenting is a niche usage and it would rather confuse newcomers.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292/c4061733969@github.com>

Dietmar Schwertberger

unread,
Mar 14, 2026, 8:04:30 PM (3 days ago) Mar 14
to wx-...@googlegroups.com, Push

@DietmarSchwertberger pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292/before/ad28ac88f9a000b8e653632f26282a031cd0b670/after/d585fc3f4be6832beb2e836928917fdd7c863e85@github.com>

VZ

unread,
Mar 15, 2026, 4:44:55 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed

Closed #26292 via e79eee6.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26292/issue_event/23588315109@github.com>

Reply all
Reply to author
Forward
0 new messages