Hi Ajithkumar,

I confirmed your problem.
I run your program on my Windows XP with Shoes-0.r1057.
Output was the following on the console window.
 - Shoes.p @o.left  #=> 0
 - Shoes.p @l.left  #=> 60
 - Shoes.p @m.left  #=> 0

Then I tried to use style[:left], it worked well.
 - Shoes.p @o.style[:left]  #=> 20
 - Shoes.p @l.style[:left]  #=> 60
 - Shoes.p @m.style[:left]  #=> 100

Umm.... strange... But sorry, I don't know if this is a bug. xx-P

Regards,
ashbb

On Sat, Nov 8, 2008 at 1:05 AM, Ajithkumar Warrier <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I get the coordinates of a shape only in the second instance of the code
> below. Is this a bug or something I am missing out on?
>
> Thanks
>
>
> Shoes.app :width => 500, :height => 500, :resizable => false do
>   fill rgb(255,0,0)
>   @o = oval 20,20,50,50
>   Shoes.p @o.left
>
>   @l = oval
>   @l.style(:top => 20, :left => 60, :width => 50, :height => 50)
>   Shoes.p @l.left
>
>   flow do
>     @m = oval
>     @m.style(:top => 20, :left => 100,  :width => 50, :height => 50 )
>     Shoes.p @m.left
>   end
> end
>

Reply via email to