The answer is s(i).parent=nil (break up the parent/child relationship)
Break the plate folks!
dim S(4) as slider
dim i as integer
for i = 0 to 4
S(i) = new Slider1
s(i).top = s(i).top + 50*i
s(i).parent=nil
next
--
> From: Cliff Coulter <[EMAIL PROTECTED]>
> Reply-To: Getting Started <[email protected]>
> Date: Sat, 11 Feb 2006 12:23:24 -0800
> To: Getting Started <[email protected]>
> Subject: Re: Cloning objects inside of objects
>
> Control order Rectangle = 0
> Slider control order = 1
>
> Try the code yourself!
> --
>
>
>
>> From: Paul Young <[EMAIL PROTECTED]>
>> Reply-To: Getting Started <[email protected]>
>> Date: Sat, 11 Feb 2006 12:35:57 -0500
>> To: Getting Started <[email protected]>
>> Subject: Re: Cloning objects inside of objects
>>
>> Play with the ControlOrder of both. The slider's ControlOrder needs
>> to be higher than the rectangle's ControlOrder.
>>
>> On Feb 11, 2006, at 12:23 PM, Cliff Coulter wrote:
>>
>>>
>>> -- I boiled this down to as simple as I could. Put a slider in a
>>> roundRectangle and place this code in the open event. If you move the
>>> slider out of the rectangle the duplicate sliders will show but not
>>> while
>>> inside the rectangle. What gives?
>>
>>
>> Paul Young
>> [EMAIL PROTECTED]
>>
>>
>> _______________________________________________
>> 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>
>>
>
> _______________________________________________
> 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>
>
_______________________________________________
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>