unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls, ComCtrls;
type
TForm1 =
class(TForm)
Timer1: TTimer;
Label1: TLabel;
Shape1: TShape;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
procedure FormMouseLeave(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure verstecken;
begin
SetWindowLong(Application.Handle, GWL_EXSTYLE,
GetWindowLong(Application.Handle, GWL_EXSTYLE)
or WS_EX_TOOLWINDOW
and not WS_EX_APPWINDOW);
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
verstecken;
form1.Width := 1;
end;
procedure TForm1.FormMouseLeave(Sender: TObject);
begin
form1.AlphaBlendValue := 1;
form1.Width := 1;
end;
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
form1.Width := 200;
form1.AlphaBlendValue := 255;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
label1.Caption := TimeToStr(time);
end;
end.