Re: [gtkmm] Dynamic page addition to Gtk::Notebook problem



This worked for me:

void ExampleWindow::on_button_append()
{
  m_Label2 = Gtk::manage(new Gtk::Label("Contents of new tab"));
  m_Notebook.append_page(*m_Label2, "More");

  show_all_children();
  m_Notebook.set_current_page(-1); // set last one active
}





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