home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!eco.twg.com!twg.com!news
- From: "David Herron" <david@twg.com>
- Subject: Re: making a listbox wider
- Message-ID: <1992Dec22.174743.3736@twg.com>
- Sensitivity: Personal
- Encoding: 25 TEXT , 4 TEXT
- Sender: news@twg.com (USENET News System)
- Conversion: Prohibited
- Organization: The Wollongong Group, Inc., Palo Alto, CA
- Conversion-With-Loss: Prohibited
- Date: Tue, 22 Dec 1992 17:47:41 GMT
- Lines: 30
-
- > 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.)
-
-
- frame $top
-
- listbox $top.l -yscrollcommand ..
- scrollbar $top.s -command ...
- pack append $top \
- $top.l { left expand fill } \
- $top.s { left filly }
-
- pack append $top's-parent \
- ... \
- $top { ... expand fill } \
- ...
-
-
- 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 ...
-
-
- <- David Herron <david@twg.com> (work) <david@davids.mmdf.com> (home)
- <-
- <- During the '80s Usenet's mantra was: "Not all the world's a VAX".
- <- During the '90s I hope it becomes: "Not all the world's DOS (ick)".
-