1demos::widget_lib::trace2(3) perl/Tk Documentationdemos::widget_lib::trace2(3)
2
3
4
6 Tk::TraceText - Text contents defined by a traced variable.
7
9 $tt = $parent->TraceText(-option => value, ... );
10
12 Create a new TraceText widget that is derived from the standard Text
13 widget. Because it inherits all the base options and methods it behaves
14 just like a Text widget. Additionally, TraceText adds a -textvariable
15 option, which is a reference to a Perl scalar that defines the contents
16 of the widget.
17
18 Based on the Tcl/Tk TracedText "overridden widget" by Kevin Kenny.
19
20 -textvariable
21 A scalar reference. The value of the variable defines the contents
22 of the TraceText widget. Using the keyboard to insert or delete
23 text changes the value of the variable, and changing the variable
24 alters the contents of the TraceText widget.
25
27 Standard Text widget methods.
28
30 None.
31
33 my $tt = $mw->TraceText( -textvariable => \$scalar );
34
36 Stephen.O.Lidie@Lehigh.EDU
37
38 Copyright (C) 2003 - 2004, Steve Lidie. All rights reserved.
39
40 This program is free software; you can redistribute it and/or modify it
41 under the same terms as Perl itself.
42
44 text, trace
45
46
47
48Tk804.03 2014-06-10 demos::widget_lib::trace2(3)