TCanvasChord (Delphi)

From RAD Studio Code Examples
Jump to: navigation, search

Description

This code draws a chord on the top of an ellipse bounded by the current window.

Code

procedure TForm1.Button1Click(Sender: TObject);
var
  R: TRect;
begin
  R := GetClientRect;  { Get the coordinates of the current window. }
  Canvas.Chord(R.Left, R.Top, R.Right, R.Bottom, R.Right, R.Top, R.Left, R.Top);
end;

Uses