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