Advertisement
anticlown

Создание формы с круглыми краями

Sep 4th, 2023
1,860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.55 KB | None | 0 0
  1. Procedure TfrmMain.FormCreate(Sender: TObject);
  2. Var
  3.     Rgn: HRGN;
  4. Begin
  5.     //закругленные углы формы
  6.     Rgn := CreateRoundRectRgn(0, //x-coordinate of the region's upper-left corner
  7.         0, //y-coordinate of the region's upper-left corner
  8.         ClientWidth, //x-coordinate of the region's lower-right corner
  9.         ClientHeight, //y-coordinate of the region's lower-right corner
  10.         70, //height of ellipse for rounded corners
  11.         70); //width of ellipse for rounded corners
  12.     SetWindowRgn(Handle, Rgn, True);
  13. End;
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement