home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / tcl / 1871 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!kithrup!stanford.edu!kronos.arc.nasa.gov!iscnvx!netcomsv!firewall!farrar
  3. From: farrar@adaclabs.com (Stephen Daedalus)
  4. Subject: Re: Wanted: Geometry handlers like TeX Glue...
  5. Message-ID: <1992Nov18.083034@adaclabs.com>
  6. Sender: farrar@firewall (Stephen Daedalus)
  7. Nntp-Posting-Host: 192.153.52.178
  8. Organization: The Eye of the Pyramid, Inc.
  9. References:  <1992Nov18.003342.1419@twg.com>
  10. Date: Wed, 18 Nov 1992 16:30:34 GMT
  11. Lines: 16
  12.  
  13. You could use the placer.  You can "place" a widget inside a "sibling" widget.
  14.  
  15. frame .frame
  16. pack append . .frame {top expand fill frame center}
  17. button .frame.foo -text "foo"
  18. button .frame.bar -text "bar"
  19. place .frame.foo -in .frame -x 0 -y 0
  20. place .frame.bar -in .frame.foo -relx 3.0 -rely 2.5
  21.  
  22. The relx and rely options act sort of like glue.  See the man page for
  23. place for more details.
  24. ---
  25. Richard Farrar        These views are my own, not my company's or country's.
  26. ADAC Laboratories    "A man without hand is not a man."
  27. farrar@adaclabs.com        - George Costanza, Seinfeld
  28.         Spam is a registered trademark of Hormel
  29.