Occurs just before the chart panel paints itself. Use the OnDrawing event handler to take action before the chart panel draws. By setting the DoDraw parameter to False, the drawing can be cancelled. The Canvas parameter contains the canvas where the chart panel will be drawn, and the ARect parameter specifies where on the canvas the chart panel will be drawn.
The OnDrawing event occurs when the
Draw method is called or painting occurs but before the drawing actually starts.
Namespace: RSChartPanel
Delphi |
public |
Value
Type: TRSChartDrawingEvent
The following OnDrawing and OnDraw events create a clipping region before drawing the chart panel. The chart panel will be shown through a circular window (note that the charts will not be clipped in the round window as the charts reselect a new clipping region): Delphi |
procedure TForm1.RSChartPanel1Draw(Sender: TObject; const Canvas: TCanvas; |
Reference |