Well I'll be a monkey's uncle. :-)
For the record, I was making it way too hard. All I needed was,
Open()
Thanks dudes.
== Rossaroni, no baloney ==
----- Original Message -----
From: "Mars Saxman" <mars at realsoftware dot com>
To: "Ross at Webwolves" <ross at webwolves dot com>; "REALbasic Plugins"
<realbasic-plugins at lists dot realsoftware dot com>
Sent: Tuesday, May 31, 2005 2:38 PM
Subject: Re: Subclassing Window
On May 31, 2005, at 2:30 PM, Ross at Webwolves wrote:
I don't know if it is simple or not, but you need to call Open in your
Open event in order to propagate the call on up the chain.
I assume you mean that the DPWindow class must call the Open event of
the superclass (i.e. Window). If so, what is the syntax?
No, not quite like that. Only the class that declares an event can invoke
the event. Window calls its own Open event, which DPWindow then
implements. You said that FrmMain implements an Open event, too, which
means that DPWindow must have declared one. Since DPWindow declared it,
DPWindow needs to call it; the syntax for calling an event is the same as
the syntax for calling a method.
Mars Saxman
REAL Software
_______________________________________________
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>
|