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.
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).refresh
next
--
> From: CV <[EMAIL PROTECTED]>
> Reply-To: "REALbasic NUG <[email protected]>"
> <[email protected]>
> Date: Fri, 10 Feb 2006 09:48:17 -0800
> To: "REALbasic NUG <[email protected]>"
> <[email protected]>
> Subject: Re: Cloning objects inside rectangle controls
>
>
> On Feb 10, 2006, at 8:45 AM, Cliff Coulter wrote:
>
>>
>> -- Is is possible to clone dynamically in code, controls contained
>> in a
>> roundRectangle? I am trying create instances of a control array,
>> slider1(0)
>> which is contained in the rectangle... <snip>
>>
>
> Yes. However, sliders seem to require a refresh after cloning. So add
> a line YourSlider'sRef.Refresh after each creation. Any problems,
> post some code.
>
> Best,
>
> Jack
> _______________________________________________
> 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>