TChartPreviewer.OnAfterDraw
TChartPreviewer
property OnAfterDraw: TNotifyEvent;
Unit
TeeEdit
Description
Called when the Chart Preview panel draws the chart.
Can be used to custom draw additional text or drawings on full size of preview paper rectangle.
procedure TPreviewCustomDraw.TeePreviewPanel1AfterDraw(Sender: TObject);
begin
with TeePreviewPanel1,Canvas do
begin
Font.Color:=clRed;
Font.Size:=12;
TextOut(PaperRect.Left+10,PaperRect.Top+6,'Some text');
end;
end;