gettingstarted
[Top] [All Lists]

Re: Cloning a rectangle...

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Cloning a rectangle...
From: Terry Ford <tmford at shaw dot ca>
Date: Mon, 30 May 2005 13:32:50 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <200553020213837740828 at sjgHPnotebook dot rgbltd dot co dot uk>

On 30-May-05, at 1:21 PM, Steve Garman wrote:

In a message regarding Re: Cloning a rectangle... dated Mon, 30 May 2005
13:16:38 -0700, Terry Ford said that ...



On 30-May-05, at 12:36 PM, Eirik Karlsen wrote:


In a rectangle's OpenEvent I'm trying to clone it using this code:

<snip>


Are you trying to create a clone of an existing Rectangle Control or
create one by itself? You can't do the latter.


And if you do the former, don't do it in the Open Event or you'll cause a
stack overflow, as each new rectangle fires its own open event.

OUCH! I missed the Control's Open Event thing entirely. :(

The rectangle clones could possibly be done in the Open Event of the Window itself. (Now I'm getting more cautious) ;-)

Terry
_______________________________________________
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>