Re: Adding widgets to boxes later?!
- From: freyd uni-muenster de
- To: gtk-list redhat com
- Subject: Re: Adding widgets to boxes later?!
- Date: Thu, 11 Mar 1999 00:48:50 +0100 (CET)
>...
>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]