Hi Joe,

Thanks for the tip.  Unfortunately, I don't know how else to achieve the
interface I have:

http://www.dj1800.com/images/fullscreen.gif

Each of the control elements (knobs, sliders etc.) is a canvas (actually a
custom subclass of a canvas). Each of the four wide rack devices is a
canvas, with the control elements on top of it.  The entire window has a
background canvas, which is used to scroll the rack devices when the window
is smaller than the combined height of the four rack devices.

Using canvases as the control elements provides an excellent way for me to
deal with the controls as objects and subclasses.

How should I best achieve all of this without using the layered canvases?

Dave.

> From: "Joseph J. Strout" <[EMAIL PROTECTED]>
> Reply-To: REALbasic NUG <[email protected]>
> Date: Mon, 13 Feb 2006 10:00:32 -0700
> To: REALbasic NUG <[email protected]>
> Subject: Re: Double-buffered windows on Windows
> 
> At 4:51 PM +0000 2/13/06, Dave Addey wrote:
> 
>> I'm being very careful to double-buffer the individual controls when drawing
>> control changes to them.  But the problem is the redraw of the window - each
>> control redraws (without flicker) in turn, but because some canvas controls
>> are on top of others, the combined redraw is very obviously layered and
>> looks flickery all the same.
> 
> The only way to avoid that is to stop layering canvases on top of
> each other.  Since a canvas is nothing but a rectangular portion of a
> window in which you can draw, there is very rarely any need to
> overlap them.
> 
> Best,
> - Joe
> 
> -- 
> 
> Joseph J. Strout
> [EMAIL PROTECTED]
> _______________________________________________
> 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>

Reply via email to