home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / tcl / 2445 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!sungy!stasys!stasys!allan
  2. From: allan@stasys.UUCP (Allan Brighton)
  3. Newsgroups: comp.lang.tcl
  4. Subject: bounding box for canvas text too long ?
  5. Keywords: tk text
  6. Message-ID: <1760@piano.stasys.UUCP>
  7. Date: 21 Jan 93 22:24:33 GMT
  8. Sender: news@stasys.sta.sub.org
  9. Organization: Brighton Software
  10. Lines: 27
  11.  
  12.  
  13. I'm trying to draw a line from one canvas text item to another and I'm
  14. having trouble getting the line to touch the right side of the text.
  15.  
  16. If I use the "$canvas bbox ..." command to draw a box around the text,
  17. it looks like this:
  18.  
  19.    +-------------+
  20.    |sample-text  |
  21.    +-------------+
  22.  
  23. There is always a space of one or two characters too much on the right
  24. side.  Is there a way to get around this ?
  25.  
  26. (I can't use "$canvas coords ..." because the text may be grouped together
  27. with other items and in that case I need the bounding box of all the items.)
  28.  
  29. Thanks,
  30.  
  31.  
  32. ---
  33.  
  34.     Allan Brighton
  35.  
  36.     Freelance Software Consultant
  37.     Munich, Germany
  38.     E-mail: allan@piano.sta.sub.org
  39.