<div dir="ltr">I don't think it does that. The program below, at least for me, doesn't do crazy colors when I move the mouse around (it does when resizing, tho).<div><br></div><div style>Robby</div><div style><br></div>
<div style><div>#lang racket/gui</div><div><br></div><div>(define c%</div><div> (class canvas%</div><div> (inherit get-client-size get-dc)</div><div> (define/override (on-paint)</div><div> (define-values (w h) (get-client-size))</div>
<div> (define dc (get-dc))</div><div> (define c (make-object color% (random 255) (random 255) (random 255)))</div><div> (send dc set-brush c 'solid)</div><div> (send dc set-pen "black" 1 'transparent)</div>
<div> (send dc draw-ellipse 0 0 w h))</div><div> (super-new)))</div><div><br></div><div>(define f (new frame% [label ""] [width 100] [height 100]))</div><div>(define c (new c% [parent f]))</div><div>(send f show #t)</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 11, 2013 at 9:41 AM, Philipp Dikmann <span dir="ltr"><<a href="mailto:philipp@dikmann.de" target="_blank">philipp@dikmann.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It appears that the GUI canvas% refreshes itself whenever it receives a mouse-event%.<br>
I intend to refresh the canvas at a steady pace (using a timer%) and independently of any mouse-events instead.<br>
Is there a reasonable way to suppress the default behavior?<br>
<br>
Thanks for your time,<br>
Philipp<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/<u></u>users</a><br>
</blockquote></div><br></div>