RMC_GetGridLocation function.
Get a grid's boundary

Syntax
nResult (LONG) = RMC_GetGridLocation(
ByVal nCtrlId (LONG),
ByVal nRegion (LONG),
ByRef nLeft (LONG),
ByRef nTop (LONG),
ByRef nRight (LONG),
ByRef nBottom (LONG)
)
Parameter
nCtrlId (LONG)
Unique ID of the chart control, to which the series belongs.
nRegion (LONG)
Index of the region, to which the series belongs.
nLeft (Long)
Holds the left position of the grid within the chart after succesfull function call.
nTop (Long)
Holds the top position of the grid within the chart after succesfull function call.
nRight (Long)
Holds the right position of the grid within the chart after succesfull function call.
nBottom (Long)
Holds the bottom position of the grid within the chart after succesfull function call.
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.
RMC_ERROR_SERIESINDEX
The series index is not valid (No series with this index exists in this region).
Example
'Supposed you have a bar series with a vertical data axis from 0 to 100.
'You want to highlight and area between values 50 and 60 as a desired range
'during runtime.

'First, get the grid's location:
nError = RMC_GetGridLocation(%ID_RMC1,1,nLeft,nTop,nRight,nBottom)
'Now get the Y position for values 50 and 60:
nError = RMC_GetDataLocation(%ID_RMC1,1,1,50,nYPos1)
nError = RMC_GetDataLocation(%ID_RMC1,1,1,60,nYPos2)
'Now draw a transparent CustomBox to highlight the area:
nError = RMC_COBox(%ID_RMC1,1,nLeft,nYPos1,nRight,nYPos2,%RMC_BOX_FLAT,%ColorRed,0,80)