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