On Thu, Feb 26, 2009 at 9:04 AM, Dennis Birch <dennisbirch@gmail.com> wrote:
> if Control(i) isa SmartControlContainer Then LoopOverControls
That should have been:
if Control(i) isa SmartControlContainer Then
SmartContainerControl(Control(i))).LoopOverControls
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
From Thu 26 Feb 2009 17:28:00 +0000 (UTC)
Delivered-To: listarchive@realsoftware.com
Received: by 10.100.124.16 with SMTP id w16cs95014anc;
Thu, 26 Feb 2009 09:28:49 -0800 (PST)
Received: by 10.224.19.194 with SMTP id c2mr2584789qab.29.1235669328958;
Thu, 26 Feb 2009 09:28:48 -0800 (PST)
Return-Path: <realbasic-nug-bounces@lists.realsoftware.com>
Received: from advanced107.inmotionhosting.com (advanced107.inmotionhosting.com
[74.124.194.228])
by mx.google.com with ESMTP id 10si335031qyk.17.2009.02.26.09.28.47;
Thu, 26 Feb 2009 09:28:48 -0800 (PST)
Received-SPF: neutral (google.com: 74.124.194.228 is neither permitted nor
denied by best guess record for domain of
realbasic-nug-bounces@lists.realsoftware.com) client-ip=74.124.194.228;
Authentication-Results: mx.google.com; spf=neutral (google.com: 74.124.194.228
is neither permitted nor denied by best guess record for domain of
realbasic-nug-bounces@lists.realsoftware.com)
smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Received: from localhost ([127.0.0.1] helo=advanced107.inmotionhosting.com)
by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
(envelope-from <realbasic-nug-bounces@lists.realsoftware.com>)
id 1Lck1i-0006yF-Kr; Thu, 26 Feb 2009 09:28:02 -0800
Received: from qmta01.emeryville.ca.mail.comcast.net ([76.96.30.16])
by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
(envelope-from <ormyrr@comcast.net>) id 1Lck1i-0006y8-0s
for realbasic-nug@lists.realsoftware.com;
Thu, 26 Feb 2009 09:28:02 -0800
Received: from OMTA11.emeryville.ca.mail.comcast.net ([76.96.30.36])
by QMTA01.emeryville.ca.mail.comcast.net with comcast
id LeJb1b0420mlR8UA1hU1Y2; Thu, 26 Feb 2009 17:28:01 +0000
Received: from sz0114.ev.mail.comcast.net ([76.96.26.176])
by OMTA11.emeryville.ca.mail.comcast.net with comcast
id LhU01b00Y3nyKck8XhU0rh; Thu, 26 Feb 2009 17:28:01 +0000
Date: Thu, 26 Feb 2009 17:28:00 +0000 (UTC)
From: ormyrr@comcast.net
To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Message-ID:
<376309162.2910771235669280647.JavaMail.root@sz0114a.emeryville.ca.mail.comcast.net>
In-Reply-To: <fed2e2560902260904x32d826e1r9a5146fdc2965cfe@mail.gmail.com>
Subject: Re: EmbeddedWindowControl/ContainerControl Issue
MIME-Version: 1.0
X-Originating-IP: [76.96.26.176]
X-Mailer: Zimbra 5.0.11_GA_2730.RHEL5_64 (zclient/5.0.11_GA_2730.RHEL5_64)
X-Content-Filtered-By: Mailman/MimeDel 2.1.10
X-BeenThere: realbasic-nug@lists.realsoftware.com
X-Mailman-Version: 2.1.10
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces@lists.realsoftware.com
Errors-To: realbasic-nug-bounces@lists.realsoftware.com
X-AntiAbuse: This header was added to track abuse, please include it with any
abuse report
X-AntiAbuse: Primary Hostname - advanced107.inmotionhosting.com
X-AntiAbuse: Original Domain - realsoftware.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - lists.realsoftware.com
That won't work because Window.Control(i) IsA EmbeddedWindowControl (which IsA
Canvas, which IsA RectControl, which IsA Control, which IsA Object). The
original ContainerControl and anything associated with it are not part of the
EmbeddedWindowControl class. That is the crux of the problem.
----- Original Message -----
Couldn't you add that same logic to a ContainerControl subclass, along
with a single method to invoke it? Then in your loop that looks at all
your window's controls you could do something like:
if Control(i) isa SmartControlContainer Then LoopOverControls
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|