Custom widget draw



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.html.
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.

-- 
Best regards,
Sincerely yours,
Yuriy Rusinov.


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