On Sep 23, 2006, at 9:50 AM, John Kubie wrote:
It seemed to me that a container control would be the more elegant
way of doing this, but container controls can't be part of control
arrays. How do you clone a container control and how do you address
a particular clone?
Yes, it is unfortunate you cannot make ContainerControls into control
arrays. But ContainerControls do have a special feature that none of
the other controls have... you can add them dynamically to a Window
(thus eliminating the "need" for Control arrays). While I have never
worked with ContainerControls that way, I know that a lot of other
users have been successful with this technique. Take a look at
ContainerControl.EmdedWithin().
Can anyone give some examples of how container controls are
effectively used? Or describe the situations where they are best used?
I typically use ContainerControls for two different purposes.
The first is to simplify windows that are too complicated (too many
controls) by putting groups of Controls on their own
ContainerControl. For example, all of the controls on a single
PagePanel or TabPanel page.
The second reason is to create generic Controls which for the most
part behave like regular Built-In controls. For example, creating a
ScrollingCanvas control which has a Canvas and two scrollbars with
scrolling automated for you. All you would need to do is drop in
this control to your window, assign the picture, and there you go...
a single control on the Window.
_______________________________________________
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>