Instalátor
___________________________________________
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls, ShellAPI;
type
TForm1 = class(TForm)
Image1: TImage;
lInstaluj: TLabel;
lKonec: TLabel;
procedure lKonecClick(Sender: TObject);
procedure lKonecMouseEnter(Sender: TObject);
procedure lKonecMouseLeave(Sender: TObject);
procedure lInstalujMouseEnter(Sender: TObject);
procedure lInstalujMouseLeave(Sender: TObject);
procedure lInstalujClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{-----------------------------------------------------------------
Kliknuti na Konec ukoncuje aplikaci
------------------------------------------------------------------}
procedure TForm1.lKonecClick(Sender: TObject);
begin
Close;
end;
{-----------------------------------------------------------------
Najedu mysi nad label KONEC - zmenim barvu na Silver
------------------------------------------------------------------}
procedure TForm1.lKonecMouseEnter(Sender: TObject);
begin
lKonec.Font.Color := clSilver;
end;
{-----------------------------------------------------------------
Odjedu mysi z labelu KONEC -. vratim barvu na Aqua
------------------------------------------------------------------}
procedure TForm1.lKonecMouseLeave(Sender: TObject);
begin
lKonec.Font.Color := clAqua;
end;
{-----------------------------------------------------------------
Najedu mysi nad label INSTALUJ - zmenim barvu na Silver
------------------------------------------------------------------}
procedure TForm1.lInstalujMouseEnter(Sender: TObject);
begin
lInstaluj.Font.Color := clSilver;
end;
{-----------------------------------------------------------------
Odjedu mysi z labelu INSTALUJ -. vratim barvu na Aqua
------------------------------------------------------------------}
procedure TForm1.lInstalujMouseLeave(Sender: TObject);
begin
lInstaluj.Font.Color := clAqua;
end;