-
Notifications
You must be signed in to change notification settings - Fork 1
/
Unit3.pas
102 lines (85 loc) · 2.59 KB
/
Unit3.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, jpeg, ExtCtrls, Buttons, shellapi, StdCtrls;
type
TForm_Main = class(TForm)
Image1: TImage;
SpeedButton1: TSpeedButton;
SpeedButton2: TSpeedButton;
SpeedButton3: TSpeedButton;
SpeedButton4: TSpeedButton;
SpeedButton5: TSpeedButton;
SpeedButton6: TSpeedButton;
SpeedButton7: TSpeedButton;
Timer1: TTimer;
procedure SpeedButton2Click(Sender: TObject);
procedure SpeedButton3Click(Sender: TObject);
procedure SpeedButton1Click(Sender: TObject);
procedure SpeedButton4Click(Sender: TObject);
procedure SpeedButton5Click(Sender: TObject);
procedure SpeedButton6Click(Sender: TObject);
procedure SpeedButton7Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form_Main: TForm_Main;
implementation
uses Unit2, Unit1, ABOUT;
{$R *.dfm}
procedure TForm_Main.SpeedButton2Click(Sender: TObject);
{ Ðåäàêòèðîâàíèå äàííûõ }
begin
form_edit.showmodal;
end;
procedure TForm_Main.SpeedButton3Click(Sender: TObject);
{ Ïîèñê äàííûõ }
begin
form_search.showmodal;
end;
procedure TForm_Main.SpeedButton5Click(Sender: TObject);
{ Îá àâòîðå }
begin
shellexecute(handle, 'open', 'http://www.weblancer.net/users/tsn_proff/', nil,nil,SW_SHOWNORMAL);
end;
procedure TForm_Main.SpeedButton6Click(Sender: TObject);
{ Ïî÷òó àâòîðó }
begin
shellexecute(handle, 'open', 'mailto: [email protected]', nil,nil,SW_SHOWNORMAL);
end;
procedure TForm_Main.SpeedButton7Click(Sender: TObject);
{ Î çàêàçå }
begin
shellexecute(handle, 'open', 'http://www.weblancer.net/vacancies/31576.html', nil,nil,SW_SHOWNORMAL);
end;
procedure TForm_Main.SpeedButton4Click(Sender: TObject);
{ Î ïðîãðàììå }
begin
AboutBox.ShowModal;
end;
procedure TForm_Main.Timer1Timer(Sender: TObject);
{ Ïëàâíîå ïîÿâëåíèå ïðîãðàììû íà ýêðàíå }
begin
Form_main.AlphaBlendValue:= Form_main.AlphaBlendValue+5;
if Form_main.AlphaBlendValue>=255 then begin
timer1.Enabled:=false;
Form_main.AlphaBlendValue:=255; AlphaBlend:=false;
end;
end;
procedure TForm_Main.FormClose(Sender: TObject; var Action: TCloseAction);
{ Ïëàâíîå èñ÷åçàíèå ïðîãðàììû ñ ýêðàíà }
begin
AnimateWindow(handle, 500, AW_BLEND or AW_HIDE);
end;
procedure TForm_Main.SpeedButton1Click(Sender: TObject);
{ Çàêðûòèå ïðîãðàììû }
begin
close;
end;
end.