Problem drawing line on canvas
From: Adrian Davis (adrian.davis_at_lewisham.gov.uk)
Date: 10/31/03
- Next message: Amith: "URGENT : running commands from a tcl/tk program"
- Previous message: svogel: "set HTTP-Header with tclhttpd"
- Next in thread: Aric Bills: "Re: Problem drawing line on canvas"
- Reply: Aric Bills: "Re: Problem drawing line on canvas"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Oct 2003 02:36:23 -0800
I'm trying to draw an angled line across the corner
of a rectange.
The example below (which needs to be displayed in a
fixed pitch font), shows the top left of a rectange
with the corner a 0,0. The "*" indicate the line of
the rectange, "." are the background and "+" is the
line I wish to draw.
Using the following command...
$name create line 0 2 2 0 -width 1 -fill red
...I would expect this...
**+*****
*+......
+.......
*.......
*.......
*.......
*.......
...but I get this...
********
*+......
+.......
*.......
*.......
*.......
*.......
...If I try...
$name create line 2 0 0 2 -width 1 -fill red
...I get...
**+*****
*+......
*.......
*.......
*.......
*.......
*.......
...How do I get the required line?
Many Thanks,
=Adrian=
- Next message: Amith: "URGENT : running commands from a tcl/tk program"
- Previous message: svogel: "set HTTP-Header with tclhttpd"
- Next in thread: Aric Bills: "Re: Problem drawing line on canvas"
- Reply: Aric Bills: "Re: Problem drawing line on canvas"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|