realbasic-nug
[Top] [All Lists]

Re: redrawing in a canvas

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: redrawing in a canvas
From: Thomas Reed <tareed at bitjuggler dot com>
Date: Sun, 31 Oct 2004 06:43:43 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <55DA17E4-2AEB-11D9-9E96-000A95A9544A at shaw dot ca> <FB01A957-2AEB-11D9-8237-000A95983FBE at ljug dot com> <EB5320EA-2AEC-11D9-9E96-000A95A9544A at shaw dot ca> <ABCC951C-2AF9-11D9-937F-000A959DF1D2 at realsoftware dot com> <8BC9FD7F-2AFF-11D9-9E96-000A95A9544A at shaw dot ca>
On Oct 31, 2004, at 1:41 AM, Norman Palardy wrote:

Refresh will cause it erase the background, which is why that solves it.

I'm using refreshrect instead so the window background can show through.

Refresh would make it flicker on OS 9 and Windows wouldn't it ?

So will RefreshRect, but only that rect will flicker.

The bottom line is that there really isn't a good way to redraw semi-transparent graphics (text included) over the native window background with no flicker. You have to erase back to the window background first, then draw the new graphics (or text). On Mac OS X, you can do this because of the built-in buffering, but there's no way to do it without flicker on Mac OS 9 and Windows, AFAIK.

-Thomas

Personal web page: <http://homepage.mac.com/thomasareed/> My shareware: <http://www.bitjuggler.com/> Free REALbasic code: <http://www.bitjuggler.com/extra/>

There are 10 kinds of people in the world -- those who understand binary
numbers and those who don't.

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

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

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