Selection page wxNotebook Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
gomay
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 26, 2010 1:39 pm

Selection page wxNotebook

Post by gomay »

As I do to select a notebook page, which function to initialize a given page of the notebook ... I'm using:

m_notebook1-> setSelection (page);
where page is a whole and does not work ..

Someone help me ... thanks
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Re: Selection page wxNotebook

Post by Auria »

gomay wrote: m_notebook1-> setSelection (page);
where page is a whole
Sorry, I don't understand. What is "a whole"?
"Keyboard not detected. Press F1 to continue"
-- Windows
gomay
In need of some credit
In need of some credit
Posts: 5
Joined: Tue Jan 26, 2010 1:39 pm

Re: Selection page wxNotebook

Post by gomay »

Auria wrote:
gomay wrote: m_notebook1-> setSelection (page);
where page is a whole
Sorry, I don't understand. What is "a whole"?

The problem is that I not find a function of the notebook to go from one page to another, the start in any page, I need to start in the second page,

setSelelection function I use, but does not work, page is the variable, I have to declare an integer type or a type size_t?

m_notebook1-> setSelection (page)

what is the problem?
User avatar
doublemax
Moderator
Moderator
Posts: 19159
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax »

SetSelection() takes an index as a parameter.

SetSelection(0) switches to the first page, and so on.
Use the source, Luke!
Post Reply