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

KEYS

47       widget, text, undo
48

SEE ALSO

50       Tk::Text, Tk::ROText
51
52
53
54perl v5.12.0                      2010-05-13                       TextUndo(3)
Impressum