home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2251 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  1.4 KB

  1. Path: sparky!uunet!wupost!kuhub.cc.ukans.edu!hawk!shea
  2. Newsgroups: comp.lang.tcl
  3. Subject: Re: making a listbox wider
  4. Message-ID: <1992Dec26.021200.8087@hawk.cs.ukans.edu>
  5. From: shea@hawk.cs.ukans.edu (Gary Shea)
  6. Date: Sat, 26 Dec 1992 02:12:00 GMT
  7. References: <1992Dec22.174743.3736@twg.com>
  8. Organization: University of Kansas Computer Science Dept
  9. Lines: 30
  10.  
  11. In article <1992Dec22.174743.3736@twg.com> "David Herron" <david@twg.com> writes:
  12. >> How can I make a listbox wider?  Using horizontal scrollbars to get at the
  13. >> last 5 or 6 chars in the text doesn't seem worth it.  (Besides, the customer
  14. >> wants all of the text visible.)
  15. .
  16. .
  17. .
  18. >This will make the listbox fill whatever space it's put into while keeping
  19. >the scrollbar at a constant size.  (bloated scrollbars are ugly)
  20. >
  21. >Also take a look at the -geometry argument ...
  22.  
  23.     I suspect the original question is yet unanswered, and it's
  24.     one I've been wondering about also.  How can I get the listbox
  25.     to scale its width to the width of the text I put into it?
  26.     Let's say I create the listbox, fill in some entries, then
  27.     display it as a window on a canvas.  The canvas will show the
  28.     window with its full requested width.  I'd like the listbox
  29.     to ask the window for a width that shows all of the text
  30.     in the longest entry of the listbox.  How do I get it to
  31.     do that?
  32.  
  33. ><- David Herron <david@twg.com> (work) <david@davids.mmdf.com> (home)
  34.  
  35.  
  36. -- 
  37.  
  38. Gary Shea (shea@cs.ukans.edu)
  39. Dept of Computer Science
  40. Lawrence, Kansas
  41.