[Gtk-sharp-list] Triggering a draw in Gtk# / Windows
ofer at achler.org
Mon Feb 6 11:08:31 EST 2006
Scott Ellington wrote:
> 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:
That sounds like it, thank you very much. I'll keep an eye out for when
the bug is fixed =)
> On Sun, 2006-02-05 at 10:49 -0800, Ofer Achler wrote:
>> 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.
>> -- Ofer Achler
>> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
More information about the Gtk-sharp-list