Canvas coordinates start at 2?
From: Adrian Davis (adrian.davis_at_lewisham.gov.uk)
Date: 10/29/03
- Next message: The Browns: "Re: How to sync two scrolledlists"
- Previous message: svogel: "Re: additional switch for switch?"
- Next in thread: Pacalou: "Re: Canvas coordinates start at 2?"
- Reply: Pacalou: "Re: Canvas coordinates start at 2?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Oct 2003 04:36:56 -0800
I've just started playing with the canvas widget (TCL/TK 8.4.4). The
documentation says that the coordinates start with 0,0 at the top left
of the widget. But for me it seems to be at 2,2.
If I draw horizontal or vertical lines in the area to the left or
above 2 nothing is displayed, but at "x" or "y" value 2 the lines
appear along the edge of the widget as expected. Centering images in
the widget also requires this offset to be added in order to display
correctly.
Any ideas what I'm doing wrong here?
Many Thanks,
=Adrian=
- Next message: The Browns: "Re: How to sync two scrolledlists"
- Previous message: svogel: "Re: additional switch for switch?"
- Next in thread: Pacalou: "Re: Canvas coordinates start at 2?"
- Reply: Pacalou: "Re: Canvas coordinates start at 2?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|