Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Library: Windows API / MS.NET Framework API (https://www.delphipraxis.net/20-library-windows-api-ms-net-framework-api/)
-   -   Delphi Wie mache ich ein Formular mit abgerundeten Ecken? (https://www.delphipraxis.net/27-wie-mache-ich-ein-formular-mit-abgerundeten-ecken.html)

Daniel B 7. Jun 2002 21:05


Wie mache ich ein Formular mit abgerundeten Ecken?
 
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
var
  CLFRgn: HRgn;
begin
  CLFRgn := CreateRoundRectRgn(0, 0, Form1.Width, Form1.Height, 30, 30);
  SetWindowRgn(Form1.Handle, CLFRgn, True);
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:28 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz