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: Joe Huber <joehuber at talasoft dot com>
Date: Fri, 30 Jun 2006 07:28:57 -0700
Cc:
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <3A4F0703-EAFC-458B-A0A9-3F58491BEDB6 at mac dot com>
At 8:29 AM -0400 6/30/06, John Kubie wrote:
Again, any suggestions are appreciated.

Besides doing your own offscreen buffering you should also be aware of these issues:

- Never use Refresh, instead just draw your offscreen picture to the canvas when it needs to be changed, and also in the Paint event

- Becareful of overlapping controls since they may cause multiple unintentional updates

- If controls are intended to overlap, make sure the Parenting relationships are set up properly so that RB will update the controls in the proper order and at the right times.

- As others have suggested, set the Canvas.EraseBackground property to false

I find that I can do flicker free updating of stuff I draw into a canvas on Windows, however there seems to be a lot of unavoidable control flicker when resizing windows.

Hope this helps,
Joe Huber
_______________________________________________
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>