home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!sungy!stasys!stasys!allan
- From: allan@stasys.UUCP (Allan Brighton)
- Newsgroups: comp.lang.tcl
- Subject: bounding box for canvas text too long ?
- Keywords: tk text
- Message-ID: <1760@piano.stasys.UUCP>
- Date: 21 Jan 93 22:24:33 GMT
- Sender: news@stasys.sta.sub.org
- Organization: Brighton Software
- Lines: 27
-
-
- I'm trying to draw a line from one canvas text item to another and I'm
- having trouble getting the line to touch the right side of the text.
-
- If I use the "$canvas bbox ..." command to draw a box around the text,
- it looks like this:
-
- +-------------+
- |sample-text |
- +-------------+
-
- There is always a space of one or two characters too much on the right
- side. Is there a way to get around this ?
-
- (I can't use "$canvas coords ..." because the text may be grouped together
- with other items and in that case I need the bounding box of all the items.)
-
- Thanks,
-
-
- ---
-
- Allan Brighton
-
- Freelance Software Consultant
- Munich, Germany
- E-mail: allan@piano.sta.sub.org
-