Sanko Robinson > FLTK-0.532009 > FLTK::InputBrowser

Download:
FLTK-0.532009.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.532006   Source  

NAME ^

FLTK::InputBrowser - Input Browser (Combo Box) widget

Description ^

MicroSoft style "ComboBox" with the menu appearing below with a scrollbar. I would like to use the name "ComboBox" or "InputChoice" for a more user-friendly version which uses pop-up menus and positions the menu with the cursor pointing at the current item, but this version can be used to get what MicroSoft users expect. The implementation is a good example of how to get a widget to appear in a modal pop-up window.

Functions ^

hide_popup

$inputbrowser->hide_popup( );

item

my $ret = $inputbrowser->item( );
my $ret = $inputbrowser->item( $widget );

maxh

$inputbrowser->maxh( $height );
my $h = $inputbrowser->maxh( );

maxw

$inputbrowser->maxw( $width );
my $w = $inputbrowser->maxw( );

minh

$inputbrowser->minh( $height );
my $h = $inputbrowser->minh( );

minw

$inputbrowser->minw( $width );
my $w = $inputbrowser->minw( );

new

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

Creates a new FLTK::InputBrowser object. Obviously.

popup

$inputbrowser->popup( );

text

$inputbrowser->text( $string );
my $string = $inputbrowser->text( );

Values for type() ^

NORMAL
NONEDITABLE
INDENTED
NONEDITABLE_INDENTED

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.

syntax highlighting: