numentryplain(3)
NAME
Tk::NumEntryPlain - A numeric entry widget
SYNOPSIS
use Tk::NumEntryPlain;
DESCRIPTION
Tk::NumEntryPlain defines a widget for entering integer
numbers.
Tk::NumEntryPlain supports all the options and methods
that a normal Entry widget provides, plus the following
options
STANDARD OPTIONS
-repeatdelay -repeatinterval
WIDGET-SPECIFIC OPTIONS
- -minvalue
- Defines the minimum legal value that the widget can
hold. If this value is "undef" then there is no mini
mum value (default = undef). - -maxvalue
- Defines the maximum legal value that the widget can
hold. If this value is "undef" then there is no maxi
mum value (default = undef). - -bell
- Specifies a boolean value. If true then a bell will
ring if the user attempts to enter an illegal charac
ter into the entry widget, and when the user reaches
the upper or lower limits when using the up/down but
tons for keys (default = true). - -textvariable
- Reference to a scalar variable that contains the value
currently in the NumEntry. Use the variable only for reading (see "CAVEATS" below). - -value
- Specifies the value to be inserted into the entry wid
get. Similar to the standard -text option, but will
perform a range check on the value.
WIDGET METHODS
- $numentry->incdec(increment)
- Increment the value of the entry widget by the speci
fied increment. If increment is 0, then perform a
range check.
CAVEATS
- -textvariable
- -textvariable should only be used to read out the cur rent value in the NumEntry.
- Values set via -textvariable are not valided. There
fore it's possible to insert, e.g., 'abc', into the
NumEntry.
SEE ALSO
Tk::NumEntry Tk::Entry
HISTORY
The code was extracted from Tk::NumEntry and slightly mod
ified by Achim Bohnet <ach@mpe.mpg.de>. Tk::NumEntry's
author is Graham Barr <gbarr@pobox.com>.
Current maintainer is Slaven Rezic
<slaven.rezic@berlin.de>.
COPYRIGHT
- Copyright (c) 1997-1998 Graham Barr. All rights reserved.
This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.