Bug in $text->see(index) 
Author Message
 Bug in $text->see(index)

Craig> After trying the attached program out on a number of versions,
Craig> and a number of architectures, it does appear that there is a
Craig> bug in the $text->see() method.

Craig> When you run the test program, if you ever see partial lines
Craig> marked, then you're experiencing the bug.


Craig> $tobj->see("$i.end"); }

I missed some of the earlier discussion on this, so please ignore any
ignorance :)

I assume that by 'partial lines' you mean part of text between two

As far as I can tell, there is no bug here at all. According to Tk 4.0
docs, 'see' makes the specified position in the buffer visible, in
this case the end of the specified line. perl/Tk docs, of course,

If you want to make sure that the complete line is visible, try:


That will make the line visible if it fits in the window, otherwise
the start of the line will be visible.

You can also use the more general <tag>.last and <tag>.first, it you
need to maximize the visibility of a tagged range:



This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the


Mon, 12 Apr 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Tk::Text->index() hosed?

2. Text->see bug-like thing

3. Perl4 pattern bug - seen before?

4. Well, that's the most obscure Perl bug I've ever seen

5. fifo seen as text file

6. html source ->>> text-file

7. text form ->mysql -> nice formatting

8. URL->Text->URL

9. Text->insert delayed output to text widget

10. INDEX.CGI - bug fixes!

11. cascade->delete(index) is not available??

12. Text Indexing


Powered by phpBB® Forum Software