[Mono-list] DrawingArea needs to redraw signal??

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Nov 15 18:46:15 EST 2010


On Sat, Nov 13, 2010 at 9:21 AM, Francisco M. Marzoa <fmmarzoa at gmx.net> wrote:
> Hello again,
>
> In my application I've a DrawingArea. I use that DA's GdkWindow property
> to create a Cairo.Context. I can draw on the DA but if I, for example,
> resize the main window, the DA is erased.
>
> I assume I must redraw the DA in some events, isn't it? If this is the
> case, the question is what signal(s) on the DA may I "catch" to redraw
> when needed????

Override OnExpose or handle the ExposeEvent event and inspect the
args.Event value. There you will find the invalidated region, and a
Window drawable.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-list mailing list