From: ashbb Date: 2010-10-20T22:54:18+09:00 Subject: Re: basic Shoes app --0016364ec870a9442504930cbde6 Content-Type: text/plain; charset=ISO-8859-1 Hi JCLL, Interesting! How about this one? ;-) Shoes.app do animate do b, l, t = mouse if b == 2 and !@start r = rect l, t, 1, 1 @r = r @flag = false r.click{@flag = true; @r = r} r.release{@flag = false} motion{|left, top| @r.move(left, top) if @flag} @start, @l, @t = true, l + 1, t + 1 elsif b == 2 and @start @r.width, @r.height = l - @l, t - @t else @start = false end end end You can create rectangles with right button and also can move them with left button. Cheers, ashbb --0016364ec870a9442504930cbde6--