realbasic-betas.mbox
[Top] [All Lists]

Re: Controls Disppearing in Mac OS X!

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: Controls Disppearing in Mac OS X!
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Fri, 29 Mar 2002 08:31:40 -0800
At 5:22 PM +0100 3/29/02, Erne wrote:

I need to know on which TabPanel pane a given control is on
so that my FieldsPane class can check if that fields
on the window belong to the same pane it's on

Hmm, don't quite follow you there.

of course are other ways to do this but I'd like to know:
* Is it legal to assign Control as super of a class?

I think it is.

* How can we tell on which TabPane a control is on?

You put it there, and it's not going to be moving around. So you can hard-code it, or store it in a property of a custom control subclass, or make a Dictionary that maps control references to their tab panel locations, or...

Cheers,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'


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