1TextUndo(3)           User Contributed Perl Documentation          TextUndo(3)
2
3
4

NAME

6       Tk::TextUndo - perl/tk text widget with bindings to undo changes.
7

SYNOPSIS

9        use Tk::TextUndo;
10
11        $testundo = $parent->TextUndo(?-option=>value, ...?);
12

DESCRIPTION

14       This IS-A text widget with an unlimited 'undo' history but without a
15       re'undo' capability.
16
17       Bindings
18
19       The "TextUndo" widget has the same bindings as the Text widget.  In
20       addition there are the following bindings:
21
22       Event <L4> <<Undo>>
23           undo the last change.  Pressing <L4> several times undo step by
24           step the changes made to the text widget.
25
26       Methods
27
28       The "TextUndo" widget has the same methods as "Text" widget.  Addi‐
29       tional methods for the "TextUndo" widget are:
30
31       $text->Load($filename);
32           Loads the contents of the $filename into the text widget. Load()
33           delete the previous contents of the text widget as well as it's
34           undo history of the previous file.
35
36       $text->Save(?$otherfilename?)
37           Save contents of the text widget to a file. If the $otherfilename
38           is not specified, the text widget contents writes the file of
39           $filename used in the last Load() call.  If no file was previously
40           Load()'ed an error message pops up.  The default filename of the
41           last Load() call is not overwriten by $otherfilename.
42
43       $text->FileName(?$otherfilename?)
44           If passed an argument sets the file name associated with the loaded
45           document. Returns the current file name associated with the docu‐
46           ment.
47

KEYS

49       widget, text, undo
50

SEE ALSO

52       Tk::Text, Tk::ROText
53
54
55
56perl v5.8.8                       2008-02-05                       TextUndo(3)
Impressum