183 lines
4.7 KiB
HTML
183 lines
4.7 KiB
HTML
<html>
|
|
<head>
|
|
<title>Multi-Entry Widgets for IP Addresses</title>
|
|
|
|
<meta name="Author" content="Csaba Nemethi">
|
|
<meta name="Keywords" content="mentry, widget, IP address">
|
|
</head>
|
|
|
|
<body bgcolor=#ffffff>
|
|
<div align=center>
|
|
<h1>Multi-Entry Widgets for IP Addresses</h1>
|
|
|
|
<h3>by</h3>
|
|
|
|
<h2>Csaba Nemethi</h2>
|
|
|
|
<address>
|
|
<a href="mailto:csaba.nemethi@t-online.de">csaba.nemethi@t-online.de</a>
|
|
</address>
|
|
</div>
|
|
|
|
|
|
<p><hr>
|
|
|
|
|
|
<a name="contents"></a>
|
|
<h2>Contents</h2>
|
|
|
|
<ul>
|
|
<li><a href="#ipAddrMentry">The <code><b>mentry::ipAddrMentry</b></code>
|
|
Command</a>
|
|
<li><a href="#putIPAddr">The <code><b>mentry::putIPAddr</b></code>
|
|
Command</a>
|
|
<li><a href="#getIPAddr">The <code><b>mentry::getIPAddr</b></code>
|
|
Command</a>
|
|
</ul>
|
|
|
|
<div align=center>
|
|
<p><a href="index.html">Start page</a>
|
|
</div>
|
|
|
|
|
|
<p><hr>
|
|
|
|
|
|
<a name="ipAddrMentry"></a>
|
|
<h2>The <code><b><font size=5>mentry::ipAddrMentry</font></b></code>
|
|
Command</h2>
|
|
|
|
<dl>
|
|
<dt><b>NAME</b>
|
|
<dd><code>mentry::ipAddrMentry</code> - Create and manipulate mentry
|
|
widgets for IP addresses
|
|
|
|
<p>
|
|
<dt><b>SYNOPSIS</b>
|
|
<dd>
|
|
<pre>
|
|
<b>mentry::ipAddrMentry</b> <i>pathName</i> ?<i>options</i>?
|
|
</pre>
|
|
|
|
<p>
|
|
<dt><b>DESCRIPTION</b>
|
|
<dd>This command creates a new mentry widget <code><i>pathName</i></code>
|
|
for displaying and editing IP addresses in the standard dotted-decimal
|
|
notation. The supported <code><i>options</i></code> are the same
|
|
as in the case of the <code><b><a href=
|
|
"mentryWidget.html">mentry::mentry</a></b></code> command.
|
|
|
|
<p>
|
|
<dd>The command sets the <code><b>type</b></code> attribute of the widget
|
|
to the value <code>"IPAddr"</code> and returns the name of the newly
|
|
created widget.
|
|
|
|
<p>
|
|
<dt><b>DEFAULT BINDINGS</b>
|
|
<dd>The <code><b>mentry::ipAddrMentry</b></code> command defines four new
|
|
bindings for the entry children of the mentry widget it creates:
|
|
The <code>Up</code> key increments the entry's value by 1 if the latter
|
|
is less than 255. Similarly, the <code>Down</code> key decrements
|
|
the entry's value by 1 if the latter is greater than 0. The
|
|
<code>Prior</code> key increments the entry's value by at most 10 if
|
|
the latter is less than 255. Similarly, the <code>Next</code> key
|
|
decrements the entry's value by at most 10 if the latter is greater
|
|
than 0. If the entry is empty then all of these keys insert the
|
|
value <code>0</code> into the entry.
|
|
|
|
<p>
|
|
<dt><b>KEYWORDS</b>
|
|
<dd>mentry, widget, IP address
|
|
</dl>
|
|
|
|
<div align=center>
|
|
<p><a href="#contents">Contents</a>
|
|
<a href="index.html">Start page</a>
|
|
</div>
|
|
|
|
|
|
<p><hr>
|
|
|
|
|
|
<a name="putIPAddr"></a>
|
|
<h2>The <code><b><font size=5>mentry::putIPAddr</font></b></code> Command</h2>
|
|
|
|
<dl>
|
|
<dt><b>NAME</b>
|
|
<dd><code>mentry::putIPAddr</code> - Output an IP address to a mentry of
|
|
type <code>"IPAddr"</code>
|
|
|
|
<p>
|
|
<dt><b>SYNOPSIS</b>
|
|
<dd>
|
|
<pre>
|
|
<b>mentry::putIPAddr</b> <i>address</i> <i>pathName</i>
|
|
</pre>
|
|
|
|
<p>
|
|
<dt><b>DESCRIPTION</b>
|
|
<dd>This command outputs the IP address <code><i>address</i></code> to the
|
|
mentry widget <code><i>pathName</i></code>, which must have been
|
|
created with the <code><b><a href=
|
|
"#ipAddrMentry">mentry::ipAddrMentry</a></b></code> command (this is
|
|
checked by examining the widget's <code><b>type</b></code> attribute,
|
|
which must have the value <code>"IPAddr"</code>).
|
|
|
|
<p>
|
|
<dd>The command generates an error if the address is invalid.
|
|
|
|
<p>
|
|
<dt><b>KEYWORDS</b>
|
|
<dd>mentry, widget, IP address
|
|
</dl>
|
|
|
|
<div align=center>
|
|
<p><a href="#contents">Contents</a>
|
|
<a href="index.html">Start page</a>
|
|
</div>
|
|
|
|
|
|
<p><hr>
|
|
|
|
|
|
<a name="getIPAddr"></a>
|
|
<h2>The <code><b><font size=5>mentry::getIPAddr</font></b></code> Command</h2>
|
|
|
|
<dl>
|
|
<dt><b>NAME</b>
|
|
<dd><code>mentry::getIPAddr</code> - Get an IP address from a mentry of
|
|
type <code>"IPAddr"</code>
|
|
|
|
<p>
|
|
<dt><b>SYNOPSIS</b>
|
|
<dd>
|
|
<pre>
|
|
<b>mentry::getIPAddr</b> <i>pathName</i>
|
|
</pre>
|
|
|
|
<p>
|
|
<dt><b>DESCRIPTION</b>
|
|
<dd>This command returns the IP address contained in the mentry widget
|
|
<code><i>pathName</i></code>, which must have been created with the
|
|
<code><b><a href="#ipAddrMentry">mentry::ipAddrMentry</a></b></code>
|
|
command (this is checked by examining the widget's
|
|
<code><b>type</b></code> attribute, which must have the value
|
|
<code>"IPAddr"</code>).
|
|
|
|
<p>
|
|
<dd>If any entry child of the widget is empty, the command sets the focus
|
|
to the first such entry, generates an error, and returns the string
|
|
<code>"EMPTY"</code>.
|
|
|
|
<p>
|
|
<dt><b>KEYWORDS</b>
|
|
<dd>mentry, widget, IP address
|
|
</dl>
|
|
|
|
<div align=center>
|
|
<p><a href="#contents">Contents</a>
|
|
<a href="index.html">Start page</a>
|
|
</div>
|
|
</body>
|
|
</html>
|