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: "Maarten de Vries" <maarten dot de dot zoveelste at gmail dot com>
Date: Fri, 30 Jun 2006 18:38:24 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Uyy3X1ZxNKKg2R8Bk8BPxklgzhY705Ls1TbBPs2tKsNX3cRKrozFFHhIcTJe6K0wzm68GqEw8mjbACFiMetFlyBkTG+GnOaIEtXFpvi//qCcWdPjYLeZ5LTnqiXnOoIeQ2RHLEN+zLRtzmGrCK5LoUliVHUrfXgBcXew2D/q+Mk=
References: <b619b1330606300922y6313c799yc367910abe02ebf7 at mail dot gmail dot com> <20060630162606 dot CDC80EB652 at swarthymail-a2 dot dreamhost dot com>
It always worked for me... but you're probably right. I only care
for windows.

In that case you should just draw directly to the canvas when you need to
update and in the paint event.

Maarten


On 30/06/06, joe at strout dot net <joe at strout dot net> wrote:

On Jun 30, 2006, at 16:22 UTC, Maarten de Vries wrote:

> You should call refresh, like I said. But you shouldn't call "
canvas.refresh",
> but "Canvas.Refresh FALSE". Try it.. you'll see it works

Maarten, I think you're just confusing him.  These new-fangled approaches
of passing False to the Refresh method, or unchecking EraseBackground on the
Canvas, may work in some cases, but they're not necessary.  The tried and
true approach of simply drawing to the canvas graphics, without calling
Refresh at all, is cleaner and works reliably on any version of RB, running
on any OS.

Best,
- Joe


--
Joe Strout -- joe at strout dot net
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
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>

_______________________________________________
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>