home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!rutgers!psuvax1!schwartz
- From: schwartz@roke.cs.psu.edu (Scott Schwartz)
- Newsgroups: comp.lang.tcl
- Subject: mixing fixed and variable components with the placer
- Message-ID: <BxBEBz.K6z@cs.psu.edu>
- Date: 6 Nov 92 21:56:57 GMT
- Sender: news@cs.psu.edu (Usenet)
- Distribution: comp
- Lines: 16
- Nntp-Posting-Host: roke.cs.psu.edu
-
-
- Consider the following code fragment:
-
- frame .frame -borderwidth 10 -geometry 700x100
- place [scrollbar .frame.scroll -relief sunken -command ".frame.list yview"] \
- -in .frame -width 20 -relheight 1.0
- place [listbox .frame.list -yscroll ".frame.scroll set" -relief sunken \
- -geometry 80x10 ] \
- -in .frame -x 20 -relheight 1.0 -relwidth 0.97
-
- This puts a scrollbar and a listbox in a frame using the placer. One
- really unsightly feature is the ``-relwidth 0.97'' on the listbox.
- There doesn't seem to be a clean way to ask the placer to let an
- object fill the remaining space. Because I want the scrollbar to be
- fixed width, no relwidth for the listbox will be correct. Because the
- frame can change size, no fixed width will be correct. What to do?
-