realbasic-nug
[Top] [All Lists]

Re: Create virtually a CANVAS subclass

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Create virtually a CANVAS subclass
From: Ryan Dary <nug at ryandary dot com>
Date: Sat, 31 Dec 2005 01:04:44 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <200512302317 dot jBUNHCKj026369 at rs26s12 dot datacenter dot cha dot cantv dot net> <62260CE9-C10F-4F59-BDB0-30EEAFAFA969 at mobleybros dot com> <43B62837 dot 5010207 at ryandary dot com> <73A95241-7E61-42C8-BED9-C33E592F788F at mobleybros dot com>


Phil M wrote:
On Dec 30, 2005, at 10:41 PM, Ryan Dary wrote:

Yes, you can "scroll" controls if you simply iterate through them and "move" them all together. That gives the appearance that you are scrolling the controls. Since there is free clipping when objects within the container controls are scrolled out of the bounds, this will give you what you need.


I guess this is true. What is the advantage of doing this instead of also embedding a Canvas inside the ContainerControl?

Honestly the advantage is that finally it is the "right" way to do it. A canvas and the (imho 'screwed up' ) hierarchy of the past is now not really the way to do a control hierarchy. The fact that they made the canvas do this was nice at the time, but weren't we really "wanting" containers? Now we have them, lets embrace them and leave the past in the past.

So, I guess the short answer is that there might not be any advantage... except that container controls can be instantiated "any" time and embedded not only into a window or container control, but also as a tab in a panel! They're totally awesome dude!


Don't get me wrong... Canvases were great... but now, Container Controls are "where it's at!"


Don't I know it!  =)

I have been hard at work on a project which is packed full of ContainerControls. I hope to have it finished tomorrow as I am just putting the final touches on it... and will announce to the list when it is ready.

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