FLTK::FloatInput - Subclass of FLTK::NumericInput
A subclass of NumericInput that only allows the user to type floating point numbers (sign, digits, decimal point, more digits, 'E' or 'e', sign, digits), or hex constants that start with "0x". This is done by overriding the replace() method. Besides editing the text the user can use the up/down arrow keys to change the digits.
You may want a ValueInput widget instead. It has up/down buttons (what is called a "Spinner" in some toolkits).
If you change
the callback is only done when the user hits the up/down arrow keys or when the user types the Enter key.
This may be more useful than the default setting of
WHEN_CHANGED which can make the callback happen when partially-edited numbers are in the field.
my $float = $floatinput->fvalue()( );
Convert the string to a double using
my $int = $floatinput->ivalue( );
Convert the string to an integer,
my $long = $floatinput->lvalue()( );
Convert the string to a long using
my $input = $floatinput->new( $x, $y, $w, $h, $label );
Creates a new
Sanko Robinson <firstname.lastname@example.org> - http://sankorobinson.com/
Copyright (C) 2008-2010 by Sanko Robinson <email@example.com>
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.