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

Re: Dynamically created control classes

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: Dynamically created control classes
From: Eric Harris-Braun <eric at glassbead dot com>
Date: Wed, 29 Jan 2003 15:14:40 -0500
eric at glassbead dot com wrote:

 In the new compiler it is legal to dynamically create an instance of
 a class that inherits from a control, but how does one go about
 associating that control with a window?

You don't. It's legal only because the compiler can't really stop you. The
resulting object is not and can never be a "live" control on a window. If
you want to make a new control at runtime, you must "clone" it from a
control array.


I've just discovered that there's this nice property "window" in RectControl. How about letting us set that on the fly!

-E
--
______________________________________________________________________
Eric Harris-Braun                                   eric at glassbead dot com
Glass Bead Software                           http://www.glassbead.com

---
A searchable archive of this list is available at:
<http://support.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.


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