mentry::fixedPointMentry
Commandmentry::fixedPointMentry
- Create and manipulate mentry
widgets for real numbers in fixed-point format
mentry::fixedPointMentry pathName count1 count2 ?-comma? ?options?
pathName
for displaying and editing real numbers in fixed-point format, with
count1
characters before and
count2
digits after the decimal point. Both
count1
and count2
must be
positive integers. The mentry will have two entry children,
separated by a label displaying a "."
character by
default; the optional -comma
switch changes the
label text to ","
. The supported
options
are the same as in the case of the
mentry::mentry
command.
type
attribute of the widget
to the value "FixedPoint"
and returns the name of the
newly created widget.
mentry::putReal
Commandmentry::putReal
- Output a real number to a mentry of type
"FixedPoint"
mentry::putReal number pathName
number
to the
mentry widget pathName
, which must have been
created with the mentry::fixedPointMentry
command
(this is checked by examining the widget's type
attribute, which must have the value "FixedPoint"
).
mentry::getReal
Commandmentry::getReal
- Get a real number from a mentry of type
"FixedPoint"
mentry::getReal pathName
pathName
, which must have been created with the
mentry::fixedPointMentry
command
(this is checked by examining the widget's type
attribute, which must have the value "FixedPoint"
).
"EMPTY"
.