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: Jim Dossey <jim dot dossey at gmail dot com>
Date: Sat, 31 Dec 2005 14:04:20 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rxbzoIWMouSr7eQGZhQZQJOvFCBwrXbcqby9HMBn6Z5wSYbXZk7Yri2H5C6nLJbHkKVm0EmYjXvY1lmiu27i6AtEZjV9P2wm19HsO4lgflCXqjn/H391iWZ5iyAtsEZMkaZ/cjGQeHbZdP0VsgN6SHPFYJbeHvXzlw7CTZqMX0k=
References: <BFD894E6 dot 2C52B%realbasiclist at fusina dot net> <045B0BA4-824F-4A44-A38D-7ED5F35A2607 at boisseau dot co dot uk> <C649511F-3280-40C2-8C48-14C1C74AFF14 at boisseau dot co dot uk> <43B4B2E4 dot 7090001 at ryandary dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>