Delphi Tutorial


 

 

      

    

          Use following commands to make transparent form and hide the image at start up.

procedure TForm1.FormCreate(Sender: TObject);
begin
     { Set transparent background }
     Brush.Style:=bsClear;

     { Hide image at start up }
     Image1.Visible := False;
end;

 

This one put the flower (bitmap image) at mouse position.

procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
     { Show image at current cursor position }
     Image1.Top := Y - Round(Image1.Height / 2);
     Image1.Left := X - Round(Image1.Width / 2);
     Image1.Visible := True;
end;

See how simple is to code this program – Enjoy the power of Delphi programming . . .

DOWNLOAD this example

Click here to download this complete example for Delphi 6. (File size 39KB)

 

Go top

 


Previous Page First Page Next Page
 
Copyright © 2003 digitalcoding.com. All rights reserved.