home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_345e9070808a34b3cfa33654f5346e69
< prev
next >
Wrap
Text File
|
2000-03-23
|
5KB
|
130 lines
<HTML>
<HEAD>
<TITLE>Tk::NumEntryPlain - A numeric entry widget</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::NumEntryPlain - A numeric entry widget</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#standard options">STANDARD OPTIONS</A></LI>
<LI><A HREF="#widgetspecific options">WIDGET-SPECIFIC OPTIONS</A></LI>
<LI><A HREF="#caveats">CAVEATS</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
<LI><A HREF="#history">HISTORY</A></LI>
<LI><A HREF="#copyright">COPYRIGHT</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Tk::NumEntryPlain - A numeric entry widget</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P> <STRONG>use Tk::NumEntryPlain</STRONG>;</P>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P><STRONG>Tk::NumEntryPlain</STRONG> defines a widget for entering integer numbers.</P>
<P><STRONG>Tk::NumEntryPlain</STRONG> supports all the options and methods that a normal
<A HREF="../../../site/lib/Tk/Entry.html">Entry</A> widget provides, plus the following options</P>
<P>
<HR>
<H1><A NAME="standard options">STANDARD OPTIONS</A></H1>
<P><STRONG>-repeatdelay</STRONG>
<STRONG>-repeatinterval</STRONG></P>
<P>
<HR>
<H1><A NAME="widgetspecific options">WIDGET-SPECIFIC OPTIONS</A></H1>
<DL>
<DT><STRONG><A NAME="item_%2Dminvalue">-minvalue</A></STRONG><BR>
<DD>
Defines the minimum legal value that the widget can hold. If this
value is <A HREF="../../../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> then there is no minimum value (default = undef).
<P></P>
<DT><STRONG><A NAME="item_%2Dmaxvalue">-maxvalue</A></STRONG><BR>
<DD>
Defines the maximum legal value that the widget can hold. If this
value is <A HREF="../../../lib/Pod/perlfunc.html#item_undef"><CODE>undef</CODE></A> then there is no maximum value (default = undef).
<P></P>
<DT><STRONG><A NAME="item_%2Dbell">-bell</A></STRONG><BR>
<DD>
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).
<P></P>
<DT><STRONG><A NAME="item_%2Dtextvariable">-textvariable</A></STRONG><BR>
<DD>
Reference to a scalar variable that contains the value currently
in the <STRONG>NumEntry</STRONG>. Use the variable only for reading (see
<A HREF="#caveats">CAVEATS</A> below).
<P></P>
<DT><STRONG><A NAME="item_%2Dvalue">-value</A></STRONG><BR>
<DD>
Specifies the value to be inserted into the entry widget. Similar
to the standard <STRONG>-text</STRONG> option, but will perform a range
check on the value.
<P></P></DL>
<P>
<HR>
<H1><A NAME="caveats">CAVEATS</A></H1>
<DL>
<DT><STRONG>-textvariable</STRONG><BR>
<DD>
<STRONG>-textvariable</STRONG> should only be used to read out the current
value in the <STRONG>NumEntry</STRONG>.
<P>Values set via <STRONG>-textvariable</STRONG> are not valided. Therefore
it's possible to insert, e.g., 'abc', into the <STRONG>NumEntry</STRONG>.</P>
<P></P></DL>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF="../../../site/lib/Tk/NumEntry.html">Tk::NumEntry</A>
<A HREF="../../../site/lib/Tk/Entry.html">Tk::Entry</A></P>
<P>
<HR>
<H1><A NAME="history">HISTORY</A></H1>
<P>The code was extracted from <STRONG>Tk::NumEntry</STRONG> and slightly modified
by Achim Bohnet ><A HREF="mailto:ach@mpe.mpg.de">ach@mpe.mpg.de</A>>. <STRONG>Tk::NumEntry</STRONG>'s author
is Graham Barr ><A HREF="mailto:gbarr@pobox.com">gbarr@pobox.com</A>>.</P>
<P>
<HR>
<H1><A NAME="copyright">COPYRIGHT</A></H1>
<P>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.</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Tk::NumEntryPlain - A numeric entry widget</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>