Re: Dynamic Object



On 10/31/05, Kranz, Willi <kranz rheinmetall-de com> wrote:
I have to create ca. 50 Objects in an application.
Each Object has 2 Eventboxes, 2 Labes and a Pixmap
and 2 or 3 callback-functions.

Or what is the best way to solve this problem.

If your object is simple, you can just write a function to build one
and call it 50 times.

If it's more complicated, I would write a new compound widget. There's
a chapter in the gtk tutorial about this:

http://gtk.org/tutorial/c2201.html

One of the nice things about gtk (compared to Xt based kits, anyway)
is that it's very easy to subclass widgets to change their behaviour.



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