On Saturday 01 November 2008 10:35:31 Yuriy Rusinov wrote: > Hello, colleagues ! > > I have to make custom widget which contains both standard components > and my picture. I draw picture as described at > http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-custom-widgets.h >tml. But when I try to put child boxes like this > MyWidget :: MyWidget (): > Glib::ObjectBase("RLSWidget"), > Gtk::Frame(),//Container(),//Widget (), > vBox0 (new Gtk::VBox), > hBoxUp (new Gtk::HBox), > hBoxDown (new Gtk::HBox) > { > add (*vBox0); > Glib::ListHandle<Widget*> pChilds1 = this->get_children (); > vBox0->pack_start (*hBoxUp); > Gtk::Label *lAmpl = new Gtk::Label (_("Amplification")); > hBoxUp->pack_start (*lAmpl); > vBox0->pack_start (*hBoxDown); > } > > nothing changes. Where is my error ? What I have to do for correction ? > > Thanks a lot.
Hi, I didn'n clearly understand what you mean. Do you call show_all() or show() on added widgets? How are you doing your drawing? -- Larik Ishkulov. _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
