Re: Complex widget
- From: Larik Ishkulov <gentro etersoft ru>
- To: gtkmm-list gnome org
- Subject: Re: Complex widget
- Date: Fri, 31 Oct 2008 11:16:15 +0300
On Friday 31 October 2008 11:06:08 Yuriy Rusinov wrote:
> Hello, colleagues !
>
> I have to make custom widget that have both complex draw and some
> general child widgets such as Gtk::VBox, Gtk::HBox, Gtk::Label etc. I
> inherit my widget from Gtk::Container class and implement virtual
> function add such this.
> void MyWidget::add (Widget& widget)
> {
> Container::add (widget);
> }
> but in runtime I receive warning
>
> Gtk-WARNING **: GtkContainerClass::add not implemented for
> `gtkmm__CustomObject_
>
> on call this function. Where is my error, which way I have to
> reimplement virtual function ?
>
> Thanks a lot.
Hi,
Gtk::Container is an abstract class.
You may use Gtk::Bin where add() already implemented.
Larik Ishkulov.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]