-- Command: meter ID/K, HELP/K, NODE/K, ATTRS/K/M, LABEL/K/F
Meter objects are created with this command.
* ID [I..] - an id can be assigned to a meter for later
reference. The id can be any combination of up to 5
characters.
* HELP [I..] - with this argument help text may be defined
which will be displayed as balloon help whenever the pointer
is over the associated meter. Of course, this is dependant on
whether the user set up balloon help in the MUI preference
settings.
* NODE [I..] - this argument is used to specify a node in the
guide file given in the command line argument HELP for
`MUIRexx'. If the user positions the mouse pointer over the
meter and presses the help button on the keyboard then the
guide file will be displayed at the node location.
* LABEL [I..] - if given this label will be displayed in the
meter.
* ATTRS [ISG] - with this option any MUIA attribute TAGs may be
set or retrieved (see Attribute TAGs).
Some useful TAGs for use with the meter command are:
TAG_Name = TAG_id Flags Type
Numeric_Default = 0x804263e8 /* V11 isg LONG */
Numeric_Format = 0x804263e9 /* V11 isg STRPTR */
Numeric_Max = 0x8042d78a /* V11 isg LONG */
Numeric_Min = 0x8042e404 /* V11 isg LONG */
Numeric_Reverse = 0x8042f2a0 /* V11 isg BOOL */
Numeric_RevLeftRight = 0x804294a7 /* V11 isg BOOL */
Numeric_RevUpDown = 0x804252dd /* V11 isg BOOL */
Numeric_Value = 0x8042ae3a /* V11 isg LONG */
Note: Consult MUI:Developer/Autodocs/MUI_Numeric.doc and
MUI:Developer/C/Include/libraries/mui.h
Example use of this command:
window TITLE '"Test"' COMMAND '"quit"' PORT DEMO
.
.
.
group
group HORIZ
knob ID KNOB HELP '"an example knob gadget"' NODE '"knob"'
meter ID METR NODE '"meter"' LABEL 'meter'
endgroup
endgroup
endwindow
method ID KNOB Notify Numeric_Value EveryTime,
@METR 3 Set Numeric_Value TriggerValue