home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2226 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!uunet.ca!choreo!news
  3. From: news@choreo.ca (Choreo NetNews Administration Account(Ottawa))
  4. Subject: Re: dynamically changling label text
  5. Organization: Choreo Systems, Ottawa Canada
  6. Date: Tue, 22 Dec 1992 20:30:58 GMT
  7. Message-ID: <1992Dec22.203058.1442@choreo.ca>
  8. References: <1992Dec21.214049.24275@choreo.ca> <Bzo830.5pr@NeoSoft.com>
  9. Lines: 20
  10.  
  11. In article <Bzo830.5pr@NeoSoft.com> karl@NeoSoft.com (Karl Lehenbauer) writes:
  12. >In article <1992Dec21.214049.24275@choreo.ca> news@choreo.ca (Choreo NetNews Administration Account(Ottawa)) writes:
  13. >>Once the text in the label is changed, the size of the window is adjusted.
  14. >>Is there a mechanism which will allow me to explicitly set the width of the
  15. >>label?
  16. >
  17. >The Tk and Tcl manual pages are excellent, and a useful resource.
  18. >
  19. >The manual page for "label" very clearly describes a "-width" command
  20. >that sets the width in characters for textual labels or the width in
  21. >screen units if it's a bitmap.
  22. >-- 
  23. Well in actual fact, the width command didn't make any difference.  The
  24. cause of the problem was the font which was in use for the widget being a
  25. proportional font.  Thus, the length of the text was hardly ever constant.
  26. Even using the -width, we found that the window size still changed.
  27.  
  28. Thanks anyway though.
  29.  
  30.  
  31.