.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "NumEntryPlain 3pm" .TH NumEntryPlain 3pm "2021-11-06" "perl v5.32.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Tk::NumEntryPlain \- A numeric entry widget .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBuse Tk::NumEntryPlain;\fR .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBTk::NumEntryPlain\fR defines a widget for entering integer numbers. .PP \&\fBTk::NumEntryPlain\fR supports all the options and methods that a normal Entry widget provides, plus the following options .SH "STANDARD OPTIONS" .IX Header "STANDARD OPTIONS" \&\fB\-repeatdelay\fR \&\fB\-repeatinterval\fR .SH "WIDGET-SPECIFIC OPTIONS" .IX Header "WIDGET-SPECIFIC OPTIONS" .IP "\-minvalue" 4 .IX Item "-minvalue" Defines the minimum legal value that the widget can hold. If this value is \f(CW\*(C`undef\*(C'\fR then there is no minimum value (default = undef). .IP "\-maxvalue" 4 .IX Item "-maxvalue" Defines the maximum legal value that the widget can hold. If this value is \f(CW\*(C`undef\*(C'\fR then there is no maximum value (default = undef). .IP "\-bell" 4 .IX Item "-bell" Specifies a boolean value. If true then a bell will ring if the user attempts to enter an illegal character into the entry widget, and when the user reaches the upper or lower limits when using the up/down buttons for keys (default = true). .IP "\-textvariable" 4 .IX Item "-textvariable" Reference to a scalar variable that contains the value currently in the \fBNumEntry\fR. Use the variable only for reading (see \&\*(L"\s-1CAVEATS\*(R"\s0 below). .IP "\-value" 4 .IX Item "-value" Specifies the value to be inserted into the entry widget. Similar to the standard \fB\-text\fR option, but will perform a range check on the value. .IP "\-command" 4 .IX Item "-command" A callback which is called if is pressed. .IP "\-browsecmd" 4 .IX Item "-browsecmd" A callback which is called every time an increment or decrement happens in the entry widget. .SH "WIDGET METHODS" .IX Header "WIDGET METHODS" .IP "\fI\f(CI$numentry\fI\fR\->\fBincdec\fR(\fIincrement\fR)" 4 .IX Item "$numentry->incdec(increment)" Increment the value of the entry widget by the specified increment. If increment is 0, then perform a range check. .SH "CAVEATS" .IX Header "CAVEATS" .IP "\-textvariable" 4 .IX Item "-textvariable" \&\fB\-textvariable\fR should only be used to read out the current value in the \fBNumEntry\fR. .Sp Values set via \fB\-textvariable\fR are not valided. Therefore it's possible to insert, e.g., 'abc', into the \fBNumEntry\fR. .SH "SEE ALSO" .IX Header "SEE ALSO" Tk::NumEntry Tk::Entry .SH "HISTORY" .IX Header "HISTORY" The code was extracted from \fBTk::NumEntry\fR and slightly modified by Achim Bohnet . \fBTk::NumEntry\fR's author is Graham Barr . .PP Current maintainer is Slaven Rezic . .SH "COPYRIGHT" .IX Header "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.