Shoes.app :width => 400, :height => 400 do
  3.times do |n|
    translate n*50, n*50
    c = oval :top => 100, :left => 100, :radius => 20, :center => true
    c.click do
      alert("clicked #{n}")
    end
    translate -n*50, -n*50
  end
end

Only the untranslated shape (n = 0) is clickable

martin

Reply via email to