diff --git a/interface/wx/bookctrl.h b/interface/wx/bookctrl.h index dc775d00a6..31a2120c70 100644 --- a/interface/wx/bookctrl.h +++ b/interface/wx/bookctrl.h @@ -279,7 +279,13 @@ public: /** Deletes the specified page, and the associated window. - The call to this function generates the page changing events. + + The call to this function generates the page changing events when + deleting the currently selected page or a page preceding it in the + index order, but it does @e not send any events when deleting the last + page: while in this case the selection also changes, it becomes invalid + and for compatibility reasons the control never generates events with + the invalid selection index. */ virtual bool DeletePage(size_t page); @@ -311,6 +317,9 @@ public: /** Deletes the specified page, without deleting the associated window. + + See DeletePage() for a note about the events generated by this + function. */ virtual bool RemovePage(size_t page);