Tk::Zinc::Text - Zinc extension for easing text input on text item or on fields
$zinc = $mw->Zinc();
new Tk::Zinc::Text ($zinc);
$zinc->addtag('text', 'withtag', $a_text);
$zinc->addtag('text', 'withtag', $a_track);
$zinc->addtag('text', 'withtag', $a_waypoint);
$zinc->addtag('text', 'withtag', $a_tabular);
This module implements text input with the mouse and keyboard 'a la emacs'. Text items must have the 'text' tag and must of course be sensitive. Track, waypoint and tabular items have fields and these fields can be edited the same way. Only sensitive fields can be edited. the following interactions are supported:
To set the cursor position
To paste the current selection
To make a selection
To extend the current selection
To move the cursor to the left or to the right
To move the cursor up or down a line
To move the cursor at the begining of the line
To move the cursor at the end of the line
To move the cursor at the beginning / end of the text
To delete the char just before the cursor
To delete the char just after the cursor
To insert a return char. This does not validate the input!
No known bugs at this time. If you find one, please report them to the authors.
perl(1), Tk(1), Tk::Zinc(3), zinc-demos(1)
Patrick Lecoanet <firstname.lastname@example.org> (and some documentation by Christophe Mertz <email@example.com>)
CENA (C) 2002
Tk::Zinc::Text is part of Zinc and has been developed by the CENA (Centres d'Etudes de la Navigation Aérienne) for its own needs in advanced HMI (Human Machine Interfaces or Interactions). Because we are confident in the benefit of free software, the CENA delivered this toolkit under the GNU Library General Public License.
This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
June 2002 : initial release with Zinc-perl 3.2.6
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Aérienne)'. Assuming CP1252
To install Tk::Zinc, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.