Gtk::Notebook



Hello!

I'm writing program that using Gtk::Notebook widget.
The are two tabs on the left border of the main window, i want to do following:
after change tab to next, on the right side of the tabs displays some Gtk::Editable widgets and
button Save. After I'm clicking on this button text in Editable write to file.

Possible mistake in this code

  m_Notebook.signal_switch_page().connect(sigc::bind<-1, Gtk::HBox>(sigc::mem_fun(*this,
              &Window::on_notebook_switch_page),Frame));

Frame and on_notebook_switch_page defined as

      virtual void on_notebook_switch_page(Gtk::HBox Frame);
      Gtk::HBox Frame;


void Window::on_notebook_switch_page(Gtk::HBox Frame)
{
    Frame.pack_start(m_Button_Save, Gtk::PACK_SHRINK);
}



Can You help me? Maybe a link to example...
P.S. Sorry for mistakes in English.

-- 




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