home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / tcl / 1805 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.4 KB

  1. Path: sparky!uunet!ukma!rsg1.er.usgs.gov!darwin.sura.net!jvnc.net!netnews.upenn.edu!unagi.cis.upenn.edu
  2. From: kaye@unagi.cis.upenn.edu (Jonathan Kaye)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Problem with scrolling in text widgets & disabling text
  5. Message-ID: <97208@netnews.upenn.edu>
  6. Date: 11 Nov 92 23:39:22 GMT
  7. Sender: news@netnews.upenn.edu
  8. Distribution: usa
  9. Organization: University of Pennsylvania
  10. Lines: 24
  11. Nntp-Posting-Host: unagi.cis.upenn.edu
  12.  
  13. I noticed two odd behaviors regarding text widgets.
  14.  
  15. 1. When I insert all my text (using "$w.t insert 0.0 $AllMyText"), and
  16. my text does not include any newlines (but the word wrap feature is
  17. set on my text widget), tk puts the information in the window but does
  18. not update the scrollbar properly.  Particularly, even when the window
  19. displays only a part of the text, the scrollbar shows that the window
  20. contains ALL the text (the scrollbar is in its fully-extended form).
  21. It is not surprising, then, that when I click on the arrow to move
  22. down the text (or hold down button 2 and drag), nothing happens.
  23.  
  24. 2. I want to put text into my text widget and then prevent it from
  25. being edited.  I tried to disable my text widget using the "-state
  26. disabled" but then my "$w.t insert 0.0 $AllMyText" obviously doesn't do
  27. anything.  When I try to "$w.t configure -state disabled" after the
  28. insert operation, it has no effect (i.e. I can still go in and edit
  29. the text).
  30.  
  31. I'd appreciate any suggestions!
  32.  
  33. -jonathan
  34.  
  35.  
  36.  
  37.