realbasic-nug
[Top] [All Lists]

Re: canvas flicker on windows builds

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: canvas flicker on windows builds
From: John Kubie <jkubie at mac dot com>
Date: Fri, 30 Jun 2006 12:04:50 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060630155034 dot E2EA57F01A at swarthymail-a3 dot dreamhost dot com>
How do I get the paint event to fire without canvas1.refresh? When I remove the refresh statements the canvas doesn't update. (

I did it in my application, where a mousedown on the canvas creates a new picture. This is drawn onto the canvas graphics in the paint event. When I remove canvas1.refresh from the end of the mousedown event, the canvas doesn't update.

If by "refresh" you mean just plain "refresh" or "self.refresh", I'm not doing that, but I'm still getting flicker. I'll try implementing your example (after I get out of work) to see if I see flicker.

John Kubie

On Jun 30, 2006, at 11:49 AM, joe at strout dot net wrote:

There are many, and it's trivial to make such. As others have pointed out, you simply need to avoid calling Refresh; draw directly into the canvas.graphics instead, without erasing.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>