Hello,
I've recently incorporated fc into my app, but I ran into a strange problem. I
have some objects on the canvas that can be dragged with the mouse. While
dragging, each time OnMove (a method on my custom GUIMode) is called, it
recalculates the position of the object, redraws it, and triggers a render
request that is calculated on another thread (which notifies the main thread
via a custom event when it's done).
This works when I move the mouse very slowly. If I make a fast movement,
however, the canvas updates fine but the rest of the GUI freezes. It looks like
my custom notifications are being swallowed by wx whenever floatcanvas is
generating a large amount of updates.
The hack I found to work around this is to make the OnMove method immediately
return if less than .1 secs have passed since the last call to it. This is the
shortest time interval that fixes the problem reliably.
I just thought I'd let you know about this, I'm interested to hear of any
better ways to handle this issue.
Thanks,
Vitor
¡Sé el Bello 51 de People en Español! ¡Es tu oportunidad de Brillar! Sube
tus fotos ya. http://www.51bello.com/
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas