TextUndo incorrect behavior perl/tk800.015 bug? 
Author Message
 TextUndo incorrect behavior perl/tk800.015 bug?

I have implemented a scrolled text widget with perl/tk 800.015. I am
getting strange undo/redo behavior.

Here is the text widget:

$textarea = $mainwindow->Scrolled('TextUndo', '-scrollbars'=>se,
'-wrap'=>none, '-width'=>80,
        '-height'=>25, '-bd'=>2 , '-font'=>$textFont,
        '-bg'=>$textbgcolor)->pack('-in'=>$bottomframe, '-side'=>top,
        '-expand'=>1, '-fill'=>both);

Here are my undo and redo procs they are called from menus.

sub undo_proc {


sub redo_proc {


and this is the strange behavior
I type the following line

the lazy quick brown fox jumped over the fence.

then hit undo and all of it disapears.  I believe that it shoudl only be
one letter at a time not the whole line. Am I implementing this
incorrectly or something or is this a bug?


Fri, 22 Mar 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. TextUndo in Tk800.015 is slow deleting blocks of text

2. filevent bug in Tk800.015 ??

3. Tk800.022 BUG?: Slow Tk800.022 compared to Tk800.015 when passing array reference in canvas->bind

4. Perl/Tk800.015 Installation problem

5. Install failed Tk800.015

6. Tk800.015 RPM package for Linux?

7. Problems loading TK800.015 on OSF 4.0f

8. Problems building Tk800.015

9. Problem with Tk800.015 and Text Widget

10. Tk800.015 PATCH: t/browseentry.t

11. Tk800.015 incompatible changes?

12. error building Tk800.015 under thread enabled perl5


Powered by phpBB® Forum Software