| RMC_Zoom function. | ||
| Enables/Disables zooming | ||
| Syntax | ||
| nResult (LONG) = RMC_Zoom( ByVal nCtrlId (LONG), ByVal nMode (LONG), ByVal nColor (LONG), ByVal nLineColor (LONG), ByVal nTransparency (LONG) ) |
||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control. | ||
| nMode (LONG) | ||
One of the following values:
| ||
| nColor (LONG) | ||
| Color of the zoom rectangle as a color constant or as a RGB value. If omitted or 0: no color is used, the rectangle will only be outlined. | ||
| nLineColor (LONG) | ||
| Color of the outeline of the zoom rectangle as a color constant or as a RGB value. If omitted or 0: if parameter nColor is omitted or 0, Blue, otherwise no outline gets painted. | ||
| nTransparency (LONG) | ||
| Level of transparency for the rectangle. Only valid, if nColor is set. Valid values from 1 (totally transparent) to 255 (opaque, not really recommended). If omitted or 0: 100. | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_CTRLID | ||
| Wrong control ID (0 or no chart with this control ID was found). | ||
| Remarks | ||
| You may call this function at any point in your source code, even when the chart is already painted, to enable/disable zooming. Note: dependending on the DC you use to paint your chart (the control's DC or your own) and on the mode of zooming you choose (internal or external), some work will be left for you at runtime. Please read Zoom and Magnifier for more informations. | ||