Hi Sanhai and Alex et al,
I attempted to write a snippet.
But I'm not sure it is the solution you want to do...
Shoes.app do
def swap s1, s2
tmp = s2.style.to_a
s1.style.to_a.each{|k, v| s2.style k => v}
tmp.each{|k, v| s1.style k => v}
end
nostroke
r1 = rect 100, 100, 100, 100, :fill => blue
r2 = rect 150, 150, 100, 100, :fill => red
button('swap'){swap r1, r2}
end
Hope it helps,
ashbb
On Sat, Feb 7, 2009 at 12:55 AM, Alexander Rakoczy
<[email protected]>wrote:
> Hi!
>
> The best you can do right now is ensure that you draw things in the right
> order.
>
> One of the things that you can do is hide and show objects. Also, you
> can try using the after(element) and before(element) on Slot. You
> ought to be able to move what is drawn on top of what else that way.
>
> Alex
>
> On Fri, Feb 6, 2009 at 08:09, Sato Sanhai <[email protected]> wrote:
> > hi,
> > Usually the early-made Shape or Image instances are prior to later-made
> one,
> > but
> > I'm seeking methods to manipulate layers of Image instances like
> > "(Image).front" or "(Image).back" (which changed the order of layers).
> > Help me, please.
> > Peace.....Minu
> >
>
>
>
> --
> alexander rakoczy
>