realbasic-nug
[Top] [All Lists]

Re: EmbeddedWindowControl/ContainerControl Issue

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: EmbeddedWindowControl/ContainerControl Issue
From: Dennis Birch <dennisbirch@gmail.com>
Date: Thu, 26 Feb 2009 09:07:32 -0800
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; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=4xk0s/LL71Pm3uqqcHgqyT8r7HGtu5U/tZj/WG5fV1Q=; b=tC9ymbEpiGvx8AuJqLerQGu/j9PkRHhn+kVlsjyNLE54WrMuDMjR/N2AztKQNh/6Zf yhzEAEPqKyqCZHru3R0XKTfViRs+t9HUwdgi47pV3IkukbufvdCxkLwUgKDwAXhTRr2J Tf5oGt34K7PcdyzjNG59KE/dAnHktmbvkI/o8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=aDC6fZBj0Cf0PwyizRhh39fLLnkfAzcDyjATovPfWC85BzVekA5M9C2TmxV7DkgbEt yj/wgeMFpmdqlxBBeGotmEvGxJ+pLWMgq8V5LFgqiKEYNsNkVnK9K0yG/Cbk90+lPTL8 dUm8BQcpPP12Y77uZdne6Q6xDmpi0YvamEfO0=
In-reply-to: <fed2e2560902260904x32d826e1r9a5146fdc2965cfe@mail.gmail.com>
References: <5D6EE007-73DF-478F-83FD-987D2C1A2009@carboncode.com> <AAAC531A-384A-45C1-A36F-E97BB575C01C@macsos.com.au> <6F46C037-D532-4383-A64A-19047A98697C@mac.com> <AF7CFFBA-921D-4B12-836F-F6A60B471A07@carboncode.com> <39B45585-9820-47E5-8BF6-B5E0EE927B2E@great-white-software.com> <B0C41322-6779-4049-AA8C-CA35581E958A@declareSub.com> <76917D28-9D36-4A54-A249-2A045C74BF37@great-white-software.com> <8101E1E9-64A6-4A35-BCF6-C8600016AB2B@declareSub.com> <49A6BB29.4070100@inspiringapps.com> <fed2e2560902260904x32d826e1r9a5146fdc2965cfe@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
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>


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