Forum: Ruby Shoes shape location

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7f40fd88cc3915154810df02406755e5?d=identicon&s=25 Jayson Williams (jayson)
on 2008-11-05 22:42
In Shoes, how do I get the current location of a shape in a window.
I thought the below would work, but console shows 0 for x and y

Shoes.app do
   shp = oval 10,10,40,40
   debug "shp x-#{shp.left} shp y-#{shp.top}"
end
This topic is locked and can not be replied to.