相关代码 |
|
unit UPie; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) procedure FormPaint(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.DFM} procedure TForm1.FormPaint(Sender: TObject); begin {draw a pie shaped wedge} Canvas.Brush.Color := clRed; Canvas.Brush.Style := bsDiagCross; Pie(Canvas.Handle, 10, 10, 110, 110, 10, 60, 60, 10); end; end.
相关资源 |
|