Xojo Conferences
XDCMay2019MiamiUSA

Cloning objects inside of objects (Real Studio getting started Mailinglist archive)

Back to the thread list
Previous thread: Opening a file as Readonly
Next thread: listbox with variable heights


RB Database   -   tom.russell transport.alstom.com
  Cloning objects inside of objects   -   Cliff Coulter
   Re: Cloning objects inside of objects   -   Paul Young
    Re: Cloning objects inside of objects   -   Cliff Coulter
   Re: Cloning objects inside of objects   -   CV
   Re: Cloning objects inside of objects   -   Cliff Coulter

Cloning objects inside of objects
Date: 11.02.06 18:23 (Sat, 11 Feb 2006 09:23:16 -0800)
From: Cliff Coulter

-- 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?


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

Re: Cloning objects inside of objects
Date: 11.02.06 18:35 (Sat, 11 Feb 2006 12:35:57 -0500)
From: Paul Young
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 address removed>

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

Re: Cloning objects inside of objects
Date: 11.02.06 21:23 (Sat, 11 Feb 2006 12:23:24 -0800)
From: Cliff Coulter
Control order Rectangle = 0
Slider control order = 1

Try the code yourself!

Re: Cloning objects inside of objects
Date: 11.02.06 19:25 (Sat, 11 Feb 2006 10:25:04 -0800)
From: CV

On Feb 11, 2006, at 9:35 AM, Paul Young wrote:

> 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?
>>

And you may need to set the window to composite if there is a
background problem.

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>

Re: Cloning objects inside of objects
Date: 11.02.06 22:06 (Sat, 11 Feb 2006 13:06:53 -0800)
From: Cliff Coulter
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