realbasic-nug
[Top] [All Lists]

Re: Accessing Subclass events

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Accessing Subclass events
From: Will Leshner <will dot leshner at gmail dot com>
Date: Tue, 30 Nov 2004 16:22:59 -0800
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:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=GLqWWKGm9IbLaX3xK/5GIMjvyedGOCKhp3ywa1eOHwvG2+x88P6p88wIHvR45c7jQ8otM64+8oIeLAD+wDphftFyP1Ozizq4z14V3vG6VajmSjrYEU7eJTXSqUikG7YDL8mvOqvMOnxeXsim1zaoNsjGqUyx0aM39+dRaxkbfvE=
References: <BDD36E71 dot C644%barney at custombased dot com> <3396e7e204113015583551c2ab at mail dot gmail dot com>
On Tue, 30 Nov 2004 15:58:43 -0800, Will Leshner <will dot leshner at gmail dot 
com> wrote:

> As long as we aren't talking about controls, which you can't subclass,
> you make a subclass of the class that has the events you want to
> implement. Then you will see the events appear in the Events section
> of the code editor for the subclass.


Woops. I've got a nasty bit of misinformation in that answer. My
fingers were typing faster than my brain was thinking :) Anyway, as
Phil Mobley pointed out to me, you *can* subclass controls. Good
thing, too, since I do it a lot. What I actually had in mind was
instantiating controls in code. You can, of course, do that if they
are part of a control array, but that's not quite the same thing.

-- 
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com
_______________________________________________
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>