Canvas coordinates start at 2?

From: Adrian Davis (adrian.davis_at_lewisham.gov.uk)
Date: 10/29/03


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=



Relevant Pages

  • Re: Easiest/quickest method for very simple interfaces?
    ... >> I have some experience with its Gtk2 bindings. ... mentioned Python earlier; that'll work fine. ... >> This is where you have to read the documentation for the widget set ... > I wanted to avoid reading all the documentation to decide which one to ...
    (comp.os.linux.misc)
  • Re: gtk questions
    ... >>treeview widget? ... Are they using the old gtk-1 columned ... I don't think that the gtk-1 documentation ever got truely finished ... I was looking only at the text renderer and didn't ...
    (comp.os.linux.development.apps)
  • qooxdoo report
    ... I will spend X hours finding the X lines of code I need to make something new work, like drag and drop from a datagrid cell to a search field. ... it is all there and in the end just takes a few lines of code but even with extensive documentation there is no substitute for experience to know exactly where to look and what to use. ... btw, part of the story here is that a table cell is not a widget in itself and all they documented was widget-to-widget d'n'd. ...
    (comp.lang.javascript)
  • Re: panedwindow is a pain
    ... > panedwindow) but using another widget. ... simple documentation issue, in the particular case of the panedwindow ... widget (iwidgets vs Tk 8.4). ...
    (comp.lang.tcl)
  • Re: Documentation and Usability
    ... >> them a clue as to what the widget is or what to do with it. ... maintainer sits down to write the documentation. ... Considering the fact that the package maintainers volunteer to package ...
    (Debian-User)