Hide Comments
Hide Comments

Comments (0)

Occurs after the  Foreground has finished drawing. Write an OnDrawForeground event handler to take specific action after the Foreground has finished drawing. The Canvas parameter points to the canvas where the Foreground was drawn. The ARect rectangle contains the rectangle coordinates where the Foreground was drawn.

Namespace: RSChartPanel

expandingSyntax

Delphi

public
  property OnDrawForeground: TRSChartDrawEvent read GetOnDrawForeground write SetOnDrawForeground;
 

Value

Type: TRSChartDrawEvent

expandingExamples

The following example displays a copyright notice in the lower right area of the foreground:

Delphi

procedure TForm1.RSChartPanel1DrawForeground(Sender: TObject;
   const Canvas: TCanvas; ARect: TRect);
 begin
      // Note, we set the Foreground to Visible and its Brush to bsClear so that it does not truly draw
      Canvas.Font.Name := 'Papyrus';
      Canvas.Font.Size := 12;
      Canvas.TextOut( ARect.Right - Canvas.TextWidth('Copyright 2006, RiverSoftAVG.com')-25,
                      ARect.Bottom - Canvas.TextHeight('C')*2,
                      'Copyright 2006, RiverSoftAVG.com' );
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb