I am actually trying to do something pretty simple.
I have a listbox in which the user can double-click
individual rows to open a window pertaining to that row. I am
allowing a user to open any number of 'row-windows,'but only
one copy of any one row-window. Thus, I would like to bring a
pre-existing row-window to the foreground instead of opening
a second copy.
My approach was to have the listbox's double click event
method first check for an existing window (having an ID value
in a property) before spawing a new window.
Tony
---- Original message ----
>Date: Thu, 23 Sep 2004 13:49:02 -0500
>From: "Joseph J. Strout" <joe at realsoftware dot com>
>Subject: Re: Window Function
>To: Getting Started <gettingstarted at lists dot realsoftware dot com>
>
>At 11:35 AM -0700 9/23/04, 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.
>
>You'd have to typecast, since Window() returns a reference
of type
>Window, not of your custom window subclass. The Window
class doesn't
>contain your properties and methods.
>
>But often, the need to typecast indicates some more
fundamental
>design problem. What is it you're really trying to do?
>
>Best,
>- Joe
>
>--
>REAL World 2005 - The REALbasic User Conference
>March 23-25, 2005, Austin, Texas
><http://www.realsoftware.com/realworld>
>_______________________________________________
>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>
_______________________________________________
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>
|