mentry::ipAddrMentry
Commandmentry::ipAddrMentry
- Create and manipulate mentry
widgets for IP addresses
mentry::ipAddrMentry pathName ?options?
pathName
for displaying and editing IP addresses in the standard dotted-decimal
notation. The supported options
are the same
as in the case of the mentry::mentry
command.
type
attribute of the widget
to the value "IPAddr"
and returns the name of the newly
created widget.
mentry::ipAddrMentry
command defines four new
bindings for the entry children of the mentry widget it creates:
The Up
key increments the entry's value by 1 if the latter
is less than 255. Similarly, the Down
key decrements
the entry's value by 1 if the latter is greater than 0. The
Prior
key increments the entry's value by at most 10 if
the latter is less than 255. Similarly, the Next
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 0
into the entry.
mentry::putIPAddr
Commandmentry::putIPAddr
- Output an IP address to a mentry of
type "IPAddr"
mentry::putIPAddr address pathName
address
to the
mentry widget pathName
, which must have been
created with the mentry::ipAddrMentry
command (this is
checked by examining the widget's type
attribute,
which must have the value "IPAddr"
).
mentry::getIPAddr
Commandmentry::getIPAddr
- Get an IP address from a mentry of
type "IPAddr"
mentry::getIPAddr pathName
pathName
, which must have been created with the
mentry::ipAddrMentry
command (this is checked by examining the widget's
type
attribute, which must have the value
"IPAddr"
).
"EMPTY"
.