Selection page wxNotebook  [SOLVED]

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

Selection page wxNotebook

Postby gomay » Mon Feb 01, 2010 1:45 pm

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

Postby Auria » Mon Feb 01, 2010 2:27 pm

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

Postby gomay » Mon Feb 01, 2010 7:24 pm

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: 12602
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

  [SOLVED]

Postby doublemax » Mon Feb 01, 2010 8:32 pm

SetSelection() takes an index as a parameter.

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


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 2 guests