| RMC_CreateChartOnDCI function. | ||
| Create a new chart on a device context (DC). | ||
| Syntax | ||
| nResult (LONG) = RMC_CreateChartOnDCI( ByVal nParentHndl (LONG), ByVal nCtrlId (LONG), ByRef T (tRMC_CHART) ) |
||
| Parameter | ||
| nParentHndl (LONG) | ||
| Device context of the PB8 GRAPHIC BITMAP, GRAPHIC CONTROL or GRAPHIC WINDOW, on which the chart will be shown. See Remarks | ||
| nCtrlId (LONG) | ||
| Unique ID of the control. | ||
| T | ||
| A variable of UDT tRMC_CHART as defined in
the include file for PowerBASIC, rmchart.inc. The type members have the same meaning as the correspondend parameters in RMC_CreateChartOnDC(), and both functions do exactly the same. | ||
| Return value | ||
| 0 | ||
| No error, function succeeded. | ||
| RMC_ERROR_PARENTHANDLE | ||
| Parent DC is 0. | ||
| RMC_ERROR_CTRLID | ||
| Control ID is 0. | ||
| RMC_ERROR_MAXINST | ||
| The maximum count of control instances (20) within one programm is exceeded. | ||
| RMC_ERROR_NOGDIP | ||
| No GDIPLUS.DLL was found. | ||
| Remarks | ||
| This way of creating a chart is intended for use with Visual Basic. You can use the DC of the Form or the DC of a PictureBox. You must always include in the Form_Paint event of the Form a call to RMC_Paint(), and in the Form_Unload event a call to RMC_DeleteChart(). | ||