home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>Tk::TextUndo - perl/tk text widget with bindings to undo changes.</TITLE>
- <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::TextUndo - perl/tk text widget with bindings to undo changes.</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <UL>
-
- <LI><A HREF="#bindings">Bindings</A></LI>
- <LI><A HREF="#methods">Methods</A></LI>
- </UL>
-
- <LI><A HREF="#keys">KEYS</A></LI>
- <LI><A HREF="#see also">SEE ALSO</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>Tk::TextUndo - perl/tk text widget with bindings to undo changes.</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <P> <STRONG>use Tk::TextUndo;</STRONG></P>
- <P> <EM>$testundo</EM> = <EM>$parent</EM>-><STRONG>TextUndo</STRONG>(?<EM>-option</EM>=><EM>value</EM>, ...?);</P>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>This IS-A text widget with an unlimited 'undo' history but without
- a re'undo' capability.</P>
- <P>
- <H2><A NAME="bindings">Bindings</A></H2>
- <P>The <CODE>TextUndo</CODE> widget has the same bindings as the <A HREF="../../../site/lib/Tk/Text.html">Text</A> widget.
- In addition there are the following bindings:</P>
- <DL>
- <DT><STRONG><A NAME="item_Event_%3CL4%3E_%3C%3CUndo%3E%3E">Event <L4> <<Undo>></A></STRONG><BR>
- <DD>
- undo the last change. Pressing <L4> several times undo
- step by step the changes made to the text widget.
- <P></P></DL>
- <P>
- <H2><A NAME="methods">Methods</A></H2>
- <P>The <CODE>TextUndo</CODE> widget has the same methods as <CODE>Text</CODE> widget.
- Additional methods for the <CODE>TextUndo</CODE> widget are:</P>
- <DL>
- <DT><STRONG><A NAME="item_Load">$text->Load($filename);</A></STRONG><BR>
- <DD>
- Loads the contents of the $filename into the text widget. <A HREF="#item_Load"><CODE>Load()</CODE></A>
- delete the previous contents of the text widget as well as it's
- undo history of the previous file.
- <P></P>
- <DT><STRONG><A NAME="item_Save">$text-><CODE>Save(?$otherfilename?)</CODE></A></STRONG><BR>
- <DD>
- Save contents of the text widget to a file. If the
- $otherfilename is not specified, the text widget contents
- writes the file of $filename used in the last <A HREF="#item_Load"><CODE>Load()</CODE></A>
- call. If no file was previously Load()'ed an error message
- pops up. The default filename of the last <A HREF="#item_Load"><CODE>Load()</CODE></A> call
- is not overwriten by $otherfilename.
- <P></P>
- <DT><STRONG><A NAME="item_FileName">$text-><CODE>FileName(?$otherfilename?)</CODE></A></STRONG><BR>
- <DD>
- If passed an argument sets the file name associated with the loaded
- document. Returns the current file name associated with the document.
- <P></P></DL>
- <P>
- <HR>
- <H1><A NAME="keys">KEYS</A></H1>
- <P>widget, text, undo</P>
- <P>
- <HR>
- <H1><A NAME="see also">SEE ALSO</A></H1>
- <P><A HREF="../../../site/lib/Tk/Text.html">the Tk::Text manpage</A>, <A HREF="../../../site/lib/Tk/ROText.html">the Tk::ROText manpage</A></P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Tk::TextUndo - perl/tk text widget with bindings to undo changes.</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-