Re: Adding widgets to boxes later?!



>...
>Only when I resize the Window, the new buttons show up.

now I've found it myself, 
one has to show the widget before adding it to the box.
Don't know if it should be like that.

I mean

 void add_button_cb()
  {
    Gtk_Button * b;
    b= new Gtk_Button("new button");
    b->show();
    vbox.pack_start(*b,FALSE,FALSE,0);
   	//show() before pack_start() ,otherwise it doesn't work!
    cout << "packing new button\n";
  }





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