[Gtk-sharp-list] Triggering a draw in Gtk# / Windows
Ofer Achler
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:
>
> http://bugzilla.ximian.com/show_bug.cgi?id=77130
>
>
That sounds like it, thank you very much. I'll keep an eye out for when
the bug is fixed =)
> 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 - Gtk-sharp-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>>
More information about the Gtk-sharp-list
mailing list