RMC_COBox function.
Add a CustomObject Box or alter an existing CustomObject.

Syntax
nResult (LONG) = RMC_COBox(
ByVal nCtrlId (LONG),
ByVal nCOIndex (LONG),
ByVal nLeft (LONG),
ByVal nTop (LONG),
ByVal nWidth (LONG),
ByVal nHeight (LONG),
Optional ByVal nStyle (LONG),
Optional ByVal nBGColor (LONG),
Optional ByVal nLineColor (LONG),
Optional ByVal nTransparency (LONG)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control.
nCOIndex (LONG)
Index of the CustomObject. If a CustomObject with this index exists, it will be overwritten, if not, a new CustomOject will be created.
nLeft (LONG)
Upper left corner of the Box within the chart (in pixel).
nTop (LONG)
Top corner of the Box within the chart (in pixel).
nWidth (LONG)
Width of the Box (in pixel).
nHeight (LONG)
Height of the Box (in pixel).
nStyle (LONG)
Style of the box as a box style constant. If omitted or 0: RMC_BOX_FLAT
nBGColor (LONG)
Color for the background of the Box as a Color...constant or as a RGB value. If omitted or 0, the color depends on the selected Style of the box: in case of RMC_BOX_FLAT, RMC_BOX_ROUNDEDGE, RMC_BOX_RHOMBUS only the border of the Box gets painted, without filling the background; in all other cases, the box will have a LightBlue background.
nLineColor (LONG)
Color for the border of the Box as a Color...constant or as a RGB value. If omitted or 0: in case, nBGColor is set, no border gets painted, otherwise the Box gets a Blue border.
nTransparency (LONG)
Level of transparency for the background of the Box. Only valid, if nBGColor is set. Valid values from 1 (totally transparent) to 255 (opaque). If omitted or 0: no transparency.
Return value
0
No error, function succeeded.
RMC_ERROR_CTRLID
Wrong control ID (0 or no chart with this control ID was found).
RMC_ERROR_CUSTOMINDEX
Parameter nCOIndex is not valid (either 0 or it exceeds the maximum number of CustomObjects (200).
RMC_ERROR_ALLOC
Error while allocating memory for the CustomObject.