Curses::UI::Label - Create and manipulate label widgets |
Curses::UI::Label - Create and manipulate label widgets
Curses::UI::Widget | +----Curses::UI::Label
use Curses::UI; my $cui = new Curses::UI; my $win = $cui->add('window_id', 'Window');
my $label = $win->add( 'mylabel', 'Label', -text => 'Hello, world!', -bold => 1, );
$label->draw;
Curses::UI::Label is a widget that shows a textstring. This textstring can be drawn using these special features: bold, dimmed, reverse, underlined, and blinking.
See exampes/demo-Curses::UI::Label in the distribution for a short demo.
-parent, -x, -y, -width, -height, -pad, -padleft, -padright, -padtop, -padbottom, -ipad, -ipadleft, -ipadright, -ipadtop, -ipadbottom, -title, -titlefullwidth, -titlereverse, -onfocus, -onblur
For an explanation of these standard options, see Curses::UI::Widget.
$win->add( 'label', 'Label', -width => -1, -paddingspaces => 1, -text => 'A bit of text', );
This will create a label that fills the complete width of your screen and which will be completely in reverse font (also the part that has no text on it). See the demo in the distribution (examples/demo-Curses::UI::Label) for a clear example of this)
Since a Label is a non-interacting widget, it does not have any bindings.
Curses::UI, Curses::UI::Widget,
Copyright (c) 2001-2002 Maurice Makaay. All rights reserved.
Maintained by Marcus Thiesen (marcus@cpan.thiesenweb.de)
This package is free software and is provided ``as is'' without express or implied warranty. It may be used, redistributed and/or modified under the same terms as perl itself.
Curses::UI::Label - Create and manipulate label widgets |