home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!kuhub.cc.ukans.edu!hawk!shea
- Newsgroups: comp.lang.tcl
- Subject: Re: making a listbox wider
- Message-ID: <1992Dec26.021200.8087@hawk.cs.ukans.edu>
- From: shea@hawk.cs.ukans.edu (Gary Shea)
- Date: Sat, 26 Dec 1992 02:12:00 GMT
- References: <1992Dec22.174743.3736@twg.com>
- Organization: University of Kansas Computer Science Dept
- Lines: 30
-
- In article <1992Dec22.174743.3736@twg.com> "David Herron" <david@twg.com> writes:
- >> How can I make a listbox wider? Using horizontal scrollbars to get at the
- >> last 5 or 6 chars in the text doesn't seem worth it. (Besides, the customer
- >> wants all of the text visible.)
- .
- .
- .
- >This will make the listbox fill whatever space it's put into while keeping
- >the scrollbar at a constant size. (bloated scrollbars are ugly)
- >
- >Also take a look at the -geometry argument ...
-
- I suspect the original question is yet unanswered, and it's
- one I've been wondering about also. How can I get the listbox
- to scale its width to the width of the text I put into it?
- Let's say I create the listbox, fill in some entries, then
- display it as a window on a canvas. The canvas will show the
- window with its full requested width. I'd like the listbox
- to ask the window for a width that shows all of the text
- in the longest entry of the listbox. How do I get it to
- do that?
-
- ><- David Herron <david@twg.com> (work) <david@davids.mmdf.com> (home)
-
-
- --
-
- Gary Shea (shea@cs.ukans.edu)
- Dept of Computer Science
- Lawrence, Kansas
-