RMC_SetLegendHide function.
Hide/Unhide an existing legend

Syntax
nResult (LONG) = RMC_SetLegendHide(
ByVal nCtrlId (LONG),
ByVal nRegion (LONG),
ByVal nHide (LONG)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control, to which the legend belongs.
nRegion (LONG)
Index of the region, to which the legend belongs.
nHide (LONG)
If TRUE, the legend will not be painted when the chart gets (re)drawn.
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_WRONGREGION
The region index is inexistent in the chart control.
Example
i = RMC_AddLegend(%ID_RMC,1) ' Add a legend to the first region
.
.

i = RMC_SetLegendHide(%ID_RMC,1,%TRUE)       ' later, prevent the legend from painting
i = RMC_Draw(%ID_RMC1)                       ' (re)draw the chart