Re: [gtkmm] how to set appended Notebook page active?



Vlad:

void Gtk::Notebook::set_current_page  	(  	int   	 page_number  	 )   	
Switches to the page number page_num .
Parameters:
    page_num 	Index of the page to switch to, starting from 0. If negative, the last page will be used. If greater than the number of pages in the notebook, nothing will be done.

It still does not work :-/

On Tue, Jan 27, 2004 at 10:19:21AM +0100, Andreas B. Thun wrote:

Hi!

When I append a second VBox to my notebook with
m_Notebook.append_page(*VBoxRight, notebookTabName);

the first notebook page is still displayed active.

I´ve tried
m_Notebook.set_current_page(1); // activate 2nd
but it has no effect.

Can somebody help?


Andi,

have you tried
	m_Notebook.set_current_page(*VBoxRight)  ?

-Vlad







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]