I have a question. The LR talks about using CC's to create dynamic
layouts. Is it possible to dynamically add controls to a CC?
I have a project now that uses canvases to make sub-windows. I have control
arrays of each control that I will need, and I add instances of my control
array elements to each canvas (by setting the parent of the control to be
the canvas). Also, I the sub-windows sometimes overlap, and I paint the
background of each canvas with a color so that they aren't transparent. I
was just wondering if there is any benefit to switching this project to CC's
instead of canvases.
On 12/29/05, Ryan Dary <nug at ryandary dot com> wrote:
>
> No, don't create a canvas inside the container... just use the container
> like a canvas! It has all (if not more) events, properties and methods
> than a canvas.. you'll have a great time doing it... I know I did! ;-)
>
> Oh, and I've been asking REAL Software to allow for dynamic creation of
> controls and windows for years now... container controls are the best
> they've done towards that since.
>
> - Ryan
>
> Charlie Boisseau wrote:
> > REALbasic doesn't allow you to create controls on the fly. What you
> > can do is attach a new instance of a ContainerControl dynamically, so
> > you might want to create a canvas within a container control and
> try that.
>
>
_______________________________________________
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>
|