CButton is an awt-like Button widget (Fig. 1). It does not post
monitorOn but sets the device property to a specified value when pressed.
There is a stringValue and label text associated with the CButton. When
the button is pressed, the device/property in the control system will
be set to the user specified value (stringValue). The StringValue can be
a String or numerical number, such as int, float or double depending on
the nature of the device property. But it must be treated as a String
and set through the setStringValue (String val) method. CButton is
responsible to convert this StringValue to a correct data type prior to
the set action. If the set command fails due to the convertion or a
permission problem, the button will be disabled and the label color of
the button will be set to red (Fig. 2).
Fig. 1 A CButton
Fig. 2 A disabled CBotton