home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / tcl / 1032 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.1 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!bearsan!gaede
  2. From: gaede@bearsan.sda.COM (Steve Gaede)
  3. Newsgroups: comp.lang.tcl
  4. Subject: tkText help?
  5. Keywords: interaction with scrollbars
  6. Message-ID: <3696@bearsan.sda.COM>
  7. Date: 22 Jul 92 21:23:29 GMT
  8. Organization: Software Design & Analysis Inc., Boulder, CO
  9. Lines: 23
  10.  
  11. Can anyone help me with this one?
  12.  
  13. I've installed the tkText widget 2.0 in TK 2.1. I'm using xf to 
  14. configure a GUI with text editing widget and scrollbars.  I source the
  15. code that xf generates, and then do the work I want to do to
  16. fill the text widget, etc.
  17.  
  18. I populate the widget by doing an insert at 0 with the contents of a file.
  19. (This particular file has 7 lines). When I do so, the text widget executes 
  20. its "yscrollcommand" with invalid arguments (note that lastUnit is greater 
  21. than firstUnit):
  22.  
  23.     illegal lastUnit 6
  24.     while executing
  25.     ".frame.scrollbar1 set 7 0 7 6"
  26.  
  27. I get this error message only once, and after that scrolling works just
  28. fine.
  29.  
  30. Any ideas for why this is happening, and how to fix it?
  31.  
  32. Steve Gaede
  33. gaede@sda.com
  34.