[Mono-list] System.Graphics and GTK# applications

Adam Tauno Williams awilliam at whitemice.org
Mon Nov 15 15:13:36 EST 2010

Well; wouldn't this be a fantastic topic for a BLOG post?

> I've found that if I create the Graphics.FromDrawable within the Expose
> event function, it works as expected. I.e. move this code:
> g = Gtk.DotNet.Graphics.FromDrawable (drawingarea1.GdkWindow);
> >From MainWindow constructor to Redraw function (that's called on
> ExposeEvent of drawing area).
> Two misteries remain undisclosed for me anyway:
> First is why the graphics instance must be recreated in each expose
> event? and second, probably related with the first, is why when Graphics
> instance is get just one time on MainWindow constructor I can see the
> rectagle flickering from time to time while I change the window size...
> Who knows... O_o
> Anyway having it working is enough for now for me.

More information about the Mono-list mailing list