home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 March
/
Chip_1999-03_cd.bin
/
zkuste
/
delphi
/
D
/
XBALOON.ZIP
/
Unit1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1999-01-20
|
4KB
|
130 lines
unit Unit1;
interface
uses
{$IFDEF WIN32} Windows, {$ELSE} WinTypes, WinProcs, {$ENDIF}
Messages, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,
XBaloon, ShellAPI;
type
TForm1 = class(TForm)
Baloon: TXBaloon;
Label1: TLabel;
MailMe: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
procedure FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Label5MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Label6MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Label5MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Label4MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure MailMeClick(Sender: TObject);
private
Point: TPoint;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if Button = mbLeft then
begin
Point.X := X;
Point.Y := Y;
Point := ClientToScreen(Point);
Baloon.Font.Style := [];
Baloon.Font.Name := Font.Name;
Baloon.Font.Size := 8;
Baloon.Font.Color := clBlack;
Baloon.Color := clWhite;
Baloon.Shape := sRoundRect;
Baloon.Show(Point, 'Baloon !');
end;
end;
procedure TForm1.Label5MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if Button = mbLeft then
begin
Point.X := X + Label5.Left;
Point.Y := Y + Label5.Top;
Point := ClientToScreen(Point);
Baloon.Font.Name := Label5.Font.Name;
Baloon.Font.Size := Label5.Font.Size;
Baloon.Font.Style := Label5.Font.Style;
Baloon.Font.Color := clNavy;
Baloon.Color := clAqua;
Baloon.Shape := sRoundRect;
Baloon.Show(Point, '╥≡Φ ∞≤Σ≡σ÷α Γ εΣφε∞ ≥ατ≤@∩≤±≥ΦδΦ±ⁿ ∩ε ∞ε≡■ Γ π≡ετ≤.@' +
'┴≤Σⁿ ∩ε∩≡ε≈φσσ ∞σΣφ√Θ ≥ατ,@ΣδΦφφσσ ß√δ ß√ ∞εΘ ≡α±±Ωατ.');
end;
end;
procedure TForm1.Label6MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if Button = mbLeft then
begin
Point.X := X + Label6.Left;
Point.Y := Y + Label6.Top;
Point := ClientToScreen(Point);
Baloon.Font.Name := Label6.Font.Name;
Baloon.Font.Size := Label6.Font.Size;
Baloon.Font.Style := Label6.Font.Style;
Baloon.Color := Label6.Font.Color;
Baloon.Shape := sRoundRect;
Baloon.Show(Point, 'Dance with the dead in my dreams@Listen to their hollowed screams@' +
'The dead have taken my soul@Temptation''s lost all control');
end;
end;
procedure TForm1.Label5MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Baloon.Hide;
end;
procedure TForm1.Label4MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if Button = mbLeft then
begin
Point.X := X + Label4.Left;
Point.Y := Y + Label4.Top;
Point := ClientToScreen(Point);
Baloon.Font.Name := Label4.Font.Name;
Baloon.Font.Size := Label4.Font.Size;
Baloon.Font.Style := Label4.Font.Style;
Baloon.Color := Label4.Font.Color;
Baloon.Shape := sRectangle;
Baloon.Show(Point, Label4.Caption);
end;
end;
procedure TForm1.MailMeClick(Sender: TObject);
begin
{ And here - small example for executing Web Browser or Mailer. ;-) }
ShellExecute(GetDesktopWindow, 'open', 'mailto:xacker@phreaker.net', nil, nil, SW_SHOWNORMAL);
end;
end.