Re: GTK Custom Widgets
- From: Larik Ishkulov <gentro etersoft ru>
- To: gtkmm-list gnome org
- Subject: Re: GTK Custom Widgets
- Date: Tue, 28 Oct 2008 17:45:53 +0300
Filipe Apostolo wrote:
>
> Hi,
> I don't want to derive from a container because I do not want to permit
> to add more widgets in my on. If I want to add more buttons it must be
> added with other container that will heave my widget and the other button.
>
> I supose that I derive from a container the user of my widget could
> remove or add child widgets in my widget. Am I right? Is there another
> way to do this?
>
> Tanks.
I think you can do something like this:
protected:
virtual void add();
or implement 'add' function (and mabe some more).
May be someone has better ideas.
I thought that was a normal way to make composite widgets from containers.
Larik Ishkulov
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]