Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack - special offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com
cdtrrracks.com new!

Blogspot  greatis.blogspot.com

Create custom shaped forms - Forms - Tips & Tricks - Greatis Delphi Pages

Use CreateXXXRgn, CombineRgn, SetWindowRgn functions. This is a simple example.


procedure TForm1.FormCreate(Sender: TObject);
var
  h1,h2,h3: HRGN;
begin
  h1:=CreateEllipticRgn(0,0,100,100);
  h2:=CreateEllipticRgn(90,0,190,100);
  h3:=CreateEllipticRgn(180,0,280,100);

  CombineRgn(h1,h1,h2,RGN_OR);
  CombineRgn(h1,h1,h3,RGN_OR);

  SetWindowRgn(Handle,h1,true);

  DeleteObject(h1);
  DeleteObject(h2);
  DeleteObject(h3);
end;
Related topics
Create a hole in application running

For more
Delphi Help

We recommend
Greatis Form Skin

Download source