Autor Beitrag
galagher
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2562
Erhaltene Danke: 46

Windows 10 Home
Delphi 10.1 Starter, Lazarus 2.0.6
BeitragVerfasst: Di 06.04.04 18:25 
Kann mir jemand helfen, wie man ein Formular mit abgerundeten Ecken erstellt? (Habe Windows Me). Danke schon mal!

Edit: Danke, bin selber draufgekommen!

_________________
gedunstig war's - und fahle wornen zerschellten karsig im gestrock. oh graus, es gloomt der jabberwock - und die graisligen gulpen nurmen!
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Di 06.04.04 19:42 
am besten die Lösung für andere interessierte noch posten ;)
galagher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2562
Erhaltene Danke: 46

Windows 10 Home
Delphi 10.1 Starter, Lazarus 2.0.6
BeitragVerfasst: Mi 07.04.04 16:51 
Fiji-Fighter hat folgendes geschrieben:
am besten die Lösung für andere interessierte noch posten ;)


Wird gemacht:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
 //Abgerundete Ecken
procedure TForm1.FormCreate(Sender: TObject);
var
  Rgn : HRGN;
begin
 Rgn := CreateRoundRectRgn(0,0,Width+2,Height,19,19);
 SetWindowRgn(Handle, Rgn, True);
end;

//Rundes Formular
procedure TForm1.FormCreate(Sender:TObject);
var
  Rgn : HRGN;
begin
 Rgn := CreateEllipticRgn(1,1,200,200);
 SetWindowRgn(Handle, Rgn, True);
end;


Andere Formen gibt's auch, hab' ich aber noch nicht getestet!

_________________
gedunstig war's - und fahle wornen zerschellten karsig im gestrock. oh graus, es gloomt der jabberwock - und die graisligen gulpen nurmen!