Contents  All Classes  Index A-Z  All Units


TCustomTeePanelExtended.OnAfterDraw
TCustomTeePanelExtended

property OnAfterDraw: TNotifyEvent;

Unit
TeeProcs

Description
Triggered after chart has been displayed.
This event gives the opportunity to draw additional text or drawings to chart.
This event is called when drawing to screen and when printing.

Example:

procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
with Chart1.Canvas do
begin
Font.Color:=clBlue;
Font.Size:=16;
Font.Style:=[];
TextOut(10,10,'Hello');

Pen.Color:=clRed;
Pen.Width:=3;
Pen.Style:=psSolid;
MoveTo( Chart1.ChartRect.Left, Chart1.ChartRect.Top );
LineTo( Chart1.ChartRect.Right, Chart1.ChartRect.Bottom );
end;
end;



Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.