Re: GTK Custom Widgets



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]