| RMC_Magnifier function. | ||
| Enables/Disables the magnifier | ||
| Syntax | ||
| nResult (LONG) = RMC_Magnifier( ByVal nCtrlId (LONG), ByVal nEnable (LONG), ByVal nSize (LONG), ByVal nColor (LONG), ByVal nLineColor (LONG), ByVal nTransparency (LONG) ) |
||
| Parameter | ||
| nCtrlId (LONG) | ||
| Unique ID of the chart control. | ||
| nEnable (LONG) | ||
| TRUE (not zero) for enabling, FALSE (zero) for disabling the magnifier. | ||
| nSize (LONG) | ||
| (Initial) size of the rectangle, which represents the magnifier. If omitted or 0: 50 pixel. | ||
| nColor (LONG) | ||
| Color of the 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 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 the magnifier. Note: Additional to this function call there is some work to do for you at runtime, to get the magnifier working. Please read Zoom and Magnifier for more informations. | ||