From: SourceForge.net <no...@so...> - 2005-03-31 17:37:53
|
Bugs item #1169429, was opened at 2005-03-23 21:17 Message generated for change (Comment added) made by vincentdarley You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1169429&group_id=12997 Category: 18. [text] Group: None Status: Open Resolution: None Priority: 5 Submitted By: fvogelnew1 (fvogelnew1) Assigned to: Jeffrey Hobbs (hobbs) Summary: insertofftime 0 should not hide the cursor in text widgets Initial Comment: Background: A text widget with a blinking cursor. Issue: After the widget is created, using -insertofftime 0 to stop the cursor blinking stops it in the state the cursor is at the time the above command is processed. The cursor can therefore be off, depending on when insertofftime 0 was processed. What it should be (IMHO): Using -insertofftime 0 should stop blinking the cursor and always display it. To reproduce the issue: In a wish session, type: text .t -insertofftime 500 -insertontime 500 pack .t .t insert insert "This is a blinking cursor test. " bind Text <Shift-Button-3> { %W configure - insertofftime 0 } bind Text <Button-3> { %W configure -insertofftime 500 } focus .t Now play with mouse button 3 and with the shift key to stop the blinking and start it again. You can easily show that the cursor stops blinking in the state it is in when tk processes the insertofftime 0. If you make it stop blinking when it is on, then it remains visible in the widget, otherwise it is hidden and does not reappear until blinking is restored using button- 3 (try typing text in the widget, or click button1 for instance). ---------------------------------------------------------------------- >Comment By: Vince Darley (vincentdarley) Date: 2005-03-31 17:37 Message: Logged In: YES user_id=32170 Please test the attached patch. Should fix the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1169429&group_id=12997 |