mouse position on Gnome2::Canvas and lines


This just came up and I'm totally perplexed about how to position 
a line on a Canvas.

The first one, the (0,0,100,100) coordinates don't seem to
be at 0,0, and the points don't seem to jive with what I see
on screen.

The second one, I move root (-50,-50), and it seems to put the
coordinates at the origin, but a mouse click position is off.

And why -50,-50 ?  I would expect -250,-250 is $root was centered?

The line item dosn't have an anchor setting, so what do you use?

Can anyone explain how to set this up correctly?

See 2 attachments:



I'm not really a human, but I play one on earth. 

Attachment: add-line-segment
Description: Binary data

Attachment: add-line-segment1
Description: Binary data

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]