realbasic-plugins
[Top] [All Lists]

Re: Subclassing Window

To: "Ross at Webwolves" <ross at webwolves dot com>, REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Subclassing Window
From: Mars Saxman <mars at realsoftware dot com>
Date: Tue, 31 May 2005 14:38:39 -0700
Cc:
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <BE8953C0 dot C666%vanhoek at mac dot com> <036501c56625$d6abbed0$6601a8c0 at whoscalling dot net> <E0E451C1-C0D4-4867-B3A6-528043124E77 at ljug dot com> <03aa01c56627$fb555b40$6601a8c0 at whoscalling dot net>

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>

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