gettingstarted
[Top] [All Lists]

Re: Window Function

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Window Function
From: Will Leshner <leshner at ljug dot com>
Date: Thu, 23 Sep 2004 11:50:42 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <4BA4F40A-0D8F-11D9-9FFF-000A95A4D7A8 at pilotmaker dot com>
Tony Cerrato wrote:
I have not been able to figure out how to access the properties and methods I have added to a window object via the Window Function. My current approach looks something like this...

The reference you get back from the Window function is a Window, and your 
properties and methods aren't in the Window class. You can cast the window you 
get back to your window subclass and then it will work:

dim w as Window
dim m as MyWindow

w = Window(i)
if w isa MyWindow then
        m = MyWindow(w)
        if m.BooleanProperty then
                blah
        end if
endif


--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzLog & KidzMail: http://haranbanjo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

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