Forms Delphi

Title: Show A Form with Elliptic (just 497 bytes only)
Question: Show A Form with Elliptic (just 497 bytes only)
Answer:
{
Show A Form with Elliptic (just 497 bytes only)
}
unit EllipticRgnDemo_Main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
r:thandle;
i:integer;
begin
for i:=1 to trunc(width/1.414) do
begin
r:=CreateEllipticRgn(trunc(width/2)-i,trunc(height/2)-i,trunc(width/2)+i,trunc(height/2)+i);
SetWindowRgn(handle,r,true);
//Next one Line fixed by Aiming.
Application.ProcessMessages;
sleep(10);
end;
end;
end.