QueueDraw should do what you need it to do. If you are calling it from another thread you need to wrap it in an Application.Invoke or similar as gtk is not thread-safe.
As for windows, you may be hitting the same bug that another person posted about and I responded to a few days ago: http://bugzilla.ximian.com/show_bug.cgi?id=77130 Scott On Sun, 2006-02-05 at 10:49 -0800, Ofer Achler wrote: > Hello, > > I'm trying to trigger an immediate redraw in an app i'm writing but am > not getting the expected result: > > I tried .QueueDraw(), but that just makes it so that in the next event > (like moving the mouse, changing focus, etc. etc.) it'll redraw. > > I tried .GdkWindow.InvalidateRegion(null, false), it does the same thing > is .QueueDraw(). > > Is there something else i can do? > > I've tried drawing directly, but its in the wrong thread, so the program > throws an exception. > > Thanks, > > -- Ofer Achler > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list -- Scott Ellington <[EMAIL PROTECTED]> _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
