Curses::UI::Listbox

Curses::UI::Listbox can create and manipulate listbox widgets.
Download

Curses::UI::Listbox Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Maurice Makaay and Marcus Thiesen
  • Publisher web site:
  • http://search.cpan.org/~marcus/Curses-UI-0.95/lib/Curses/UI/Listbox.pm

Curses::UI::Listbox Tags


Curses::UI::Listbox Description

Curses::UI::Listbox can create and manipulate listbox widgets. Curses::UI::Listbox can create and manipulate listbox widgets.CLASS HIERARCHY Curses::UI::Widget Curses::UI::Searchable | +----Curses::UI::ListboxSYNOPSIS use Curses::UI; my $cui = new Curses::UI; my $win = $cui->add('window_id', 'Window'); my $listbox = $win->add( 'mylistbox', 'Listbox', -values => , -labels => { 1 => 'One', 2 => 'Two', 3 => 'Three' }, -radio => 1, ); $listbox->focus(); my $selected = $listbox->get();Curses::UI::Listbox is a widget that can be used to create a couple of different kinds of listboxes. These are:default listbox A list of values through which can be browsed. One of these values can be selected. The selected value will be highlighted. This kind of listbox looks somewhat like this: +------+ |One | |Two | |Three | +------+multi-select listbox This is also a list of values, but now more than one value can be selected at once. This kind of listbox looks somewhat like this: +----------+ | One | | Two | | Three | +----------+radiobutton listbox This looks a lot like the default listbox (only one value can be selected), but now there is clear visual feedback on which value is selected. Before each value "< >" is printed. If a value is selected, "< o >" is printed instead. This kind of listbox looks somewhat like this: +----------+ |< > One | | Two | |< > Three | +----------+Listbox Markup The listbox supports a primitive markup language to emphasize entries: < reverse >reverse text< /reverse > < bold >bold text< /bold > < underline >underlined text< /underline > < blink >blinking text< /blink > < dim >dim text< /dim > By using this markup tokens in the values array, you can make the listbox draw the text in the according way. To enable the parser, you have to create the listbox with the -htmltext option.Requirements:· Perl Requirements: · Perl


Curses::UI::Listbox Related Software