|
Delphi Tutorial Graphics - Transparent Form.
Download this example
This
is a tricky method to create a transparent form. Simply by setting
Brush Style to Clear mode will do the job. As you can see, how its
look on top of the desk top wallpaper.
procedure
TForm1.FormCreate(Sender: TObject);
begin
{
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.}
Brush.Style:=bsClear;
end;
DOWNLOAD this example
Click here
to download this complete example for Delphi 6. (File size 6KB)

|