1Curses::UI::TextViewer(U3s)er Contributed Perl DocumentatCiuornses::UI::TextViewer(3)
2
3
4
6 Curses::UI::TextViewer - Create and manipulate textviewer widgets
7
9 Curses::UI::Widget
10 Curses::UI::Searchable
11 |
12 +----Curses::UI::TextEditor
13 |
14 +----Curses::UI::TextViewer
15
17 use Curses::UI;
18 my $cui = new Curses::UI;
19 my $win = $cui->add('window_id', 'Window');
20
21 my $textviewer = $win->add(
22 'mytextviewer', 'TextViewer',
23 -text => "Hello, world!\n"
24 . "Goodbye, world!"
25 );
26
27 $textviewer->focus();
28
30 Curses::UI::TextViewer is a widget that can be used to create a
31 textviewer widget. This class is derived from Curses::UI::TextEditor.
32 The only special thing about this class is that the -readonly option is
33 forced to a true value. So for the usage of Curses::UI::TextViewer see
34 Curses::UI::TextEditor.
35
37 Curses::UI, Curses::UI::TextEditor,
38
40 Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
41
42 Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
43
44 This package is free software and is provided "as is" without express
45 or implied warranty. It may be used, redistributed and/or modified
46 under the same terms as perl itself.
47
48
49
50perl v5.28.1 2011-09-01 Curses::UI::TextViewer(3)