Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wxNotebook::SetSelection deprecated?

10 views
Skip to first unread message

Jennie V.H.

unread,
Oct 13, 2009, 2:45:32 PM10/13/09
to
I need to programmatically change the displayed notebook page in my
application.

In the online notes for wxNotebook, it says that SetSelection() is
deprecated, and to use ChangeSelection instead. But it also says that
SetSelection generates a page changing event, and that ChangeSelection
does not.

I'd rather not put together and post my own page-changing event.

Why is SetSelection deprecated without having an event-generating
replacement? Thanks.

Vadim Zeitlin

unread,
Oct 15, 2009, 8:54:42 PM10/15/09
to
On 2009-10-13, Jennie V.H. <sk8tr...@gmail.com> wrote:
> I need to programmatically change the displayed notebook page in my
> application.
>
> In the online notes for wxNotebook, it says that SetSelection() is
> deprecated

It isn't really deprecated, i.e. using it won't generate compiler
deprecation warnings and is perfectly all right if you're aware of the
event it generates. Besides, in the latest trunk documentation it is not
documented as deprecated any longer:

http://docs.wxwidgets.org/trunk/classwx_book_ctrl_base.html#522ca472343a07a262de92348e3f2d2c

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

0 new messages