Re: Gtk / Cairo Question

On Thu, Jul 12, 2012 at 9:12 PM, Thomas Dineen <tdineen ix netcom com> wrote:

   The code shown is cut from a GTK Scrolled window example and is based on
gtk_dialog_new which from my experiments dose NOT allow Cairo drawing.

all drawing in GTK is done with Cairo.

you generally create a DrawingArea (or occasionally an EventBox) and draw into that, but ONLY from the expose/draw handler. pack the drawing area appropriately. the right things will happen.

the actual task you want to accomplish has many potential complications that i don't have the time to go into. your idea about scrolling is not necessarily the right one, but that depends a lot on many other aspects of the problem and data.


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