--- Juhana Sadeharju <kouhia@xxxxxxxxxxxx> wrote: > >From: Jack Chen <jacks_small_world@xxxxxxxxx> > > > >Hi, I think the official GTK programming tutorial on the official > GTK's > >site is the best resource for programming GTK I've found. > > So, the situation is pretty bad. > > I checked drawing area widget page in the tutorial but it is empty. > The drawing area widget is at the top among widgets where I start > wishing better documentation and tools. It is the place where GTK+ > ends too soon. > > Regards, > Juhana Yeah I know what you mean: there's no documentation for drawing_area. But actually drawing area is the most primitive widget because you have to handle all the events yourself, and you can draw anything on it using the GDK library which has all the functions for drawing shapes. I have made a program using the drawing_area widget to display OpenGL rendering, and most of the things I need to remember are that - the "configure" event is sent when the widget is first appeared, and - the "expose" event is sent when the widget needs to be redrawn. Other than that, there's nothing too much about the drawing_area widget... you just draw whatever you like on it. Oh and I got these information from a book about programing in GNOME, and from the code examples that come from GtkGlExt, which lets you make OpenGL renders in a GTK widget. I don't remember the name of that GNOME book right now, but if you are interested I can search it for you. Bye. Jack ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list