Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack Special Offer!


Share this page

Follow us
LinkedIn Blogspot Twitter Facebook

Related products
Ultimate Pack  hot!
iGrid Plotter  new!
Image Editor
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
Print Suite .NET
Gradient Controls .NET  new!

Related links
Win32.hlp online version
MegaDetailed.NET
Delphi to C#

Special
Free Software Promotion
Offers for Resellers

Hobby projects
cdtrrracks.com
books.storrre.com
in3steps.com
sovietphillumeny.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