Re: GTK Custom Widgets
- From: Filipe Apostolo <f apostolo cbr gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: GTK Custom Widgets
- Date: Tue, 28 Oct 2008 15:03:15 +0000
Larik Ishkulov wrote:
> 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
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
Tanks, I understood your solution, and i thing I'll try it. But for now
I'll try to derive from a Bin instead.
Tanks
Filipe Apóstolo.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]