The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

FLTK::MultiBrowser - Browser that lets the user select more than one item at a time

Description

The FLTK::MultiBrowser class is a subclass of FLTK::Browser which lets the user select any set of the lines. Clicking on an item selects only that one. Ctrl+click toggles items on/off. Shift+drag (or shift+arrows) will extend selections. Normally the call ack is done when any item changes it's state, but you can change this with when().

See FLTK::Browser for methods to control the display and "current item", and FLTK::Menu for methods to add and remove lines from the browser.

The methods on FLTK::Browser for controlling the "value" control which item has the keyboard focus in a multi-browser. You must use the "select" methods described here to change what items are turned on:

set_item_selected()
select_only_this()
deselect()
select()
selected()

Functions

new

my $self = $multibrowser->new( $x, $y, $w, $h, $label );

Author

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

License and Legal

Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.

When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.