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