How to create transparent form

How to create transparent form

How to create transparent form

This Delphi tutorial demonstrates how to create transparent form. Transparent form background creates at runtime.

Bookmark:

How to create transparent form

To create transparent background form set Brush Style to Clear mode. The Brush property accesses the TBrush object that determines pattern and color for the control background. Brush is a read-only property, but an application can manipulate the TBrush object by setting its properties or by using its Assign method. The Style property determines the pattern painted by the brush, unless a value is assigned to Bitmap.

procedure TForm1.FormCreate(Sender: TObject);
begin
     { The Style property determines the pattern painted by the
     brush, unless a value is assigned to Bitmap.}

     Brush.Style:=bsClear;
end;

Leave a comment