-
Notifications
You must be signed in to change notification settings - Fork 0
/
Unit6.pas
141 lines (121 loc) · 3.41 KB
/
Unit6.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
unit Unit6;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, Vcl.StdCtrls,unit2,unit3, Vcl.Imaging.pngimage;
type
TForm6 = class(TForm)
Image1: TImage;
Image2: TImage;
Image8: TImage;
Image3: TImage;
Button1: TButton;
Image4: TImage;
Image9: TImage;
Label1: TLabel;
Image12: TImage;
Image13: TImage;
Image5: TImage;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Image9Click(Sender: TObject);
procedure Image8Click(Sender: TObject);
procedure Image2Click(Sender: TObject);
procedure Image12Click(Sender: TObject);
procedure Image13Click(Sender: TObject);
procedure Image9MouseEnter(Sender: TObject);
procedure Image9MouseLeave(Sender: TObject);
procedure Image2MouseLeave(Sender: TObject);
procedure Image2MouseEnter(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form6: TForm6;
implementation
{$R *.dfm}
procedure TForm6.Button1Click(Sender: TObject);
begin
form3.show;
form6.Hide;
end;
procedure TForm6.FormClose(Sender: TObject; var Action: TCloseAction);
begin
application.Terminate;
end;
procedure TForm6.FormCreate(Sender: TObject);
begin
form6.Cursor:=1;
image1.Picture.LoadFromFile('ôîòîêàðòî÷êè\ôîííîà.bmp');
image2.Picture.LoadFromFile('ôîòîêàðòî÷êè\praktikani\2a.bmp');
image3.Picture.LoadFromFile('ôîòîêàðòî÷êè\äåäîê.bmp');
image9.Picture.LoadFromFile('ôîòîêàðòî÷êè\êíîïêà33332.bmp');
image8.Picture.LoadFromFile('ôîòîêàðòî÷êè\praktikani\êðàñíàÿ áàøêà.bmp');
image13.Picture.LoadFromFile('ôîòîêàðòî÷êè\õåëî.bmp');
image12.Picture.LoadFromFile('ôîòîêàðòî÷êè\èìáà êíîïêà.bmp');
label1.Caption:='À âîò è îñòàâøèåñÿ ïðàêòèêàíòû. Çíàêîìüñÿ'+#13#10+'ñ íèìè òàê æå, êàê ñ ïðîøëûìè ðåáÿòàìè, è '+#13#10+'íàæèìàé "Â ïóòü": ïîåäåì äàëüøå. ';
end;
procedure TForm6.Image12Click(Sender: TObject);
begin
Image1.Picture.LoadFromFile('ôîòîêàðòî÷êè\ôîííîà.bmp');
image8.Visible:=true;
image3.Visible:=true;
image12.visible:=false;
image2.Visible:=true;
image13.Visible:=true;
end;
procedure TForm6.Image13Click(Sender: TObject);
begin
form2.show;
form6.Hide;
end;
procedure TForm6.Image2Click(Sender: TObject);
begin
Image1.Picture.LoadFromFile('ôîòîêàðòî÷êè\praktikani\ôîíïîëèíà.bmp');
image8.Visible:=false;
image2.Visible:=false;
image3.Visible:=false;
image12.visible:=true;
image13.Visible:=false;
end;
procedure TForm6.Image2MouseEnter(Sender: TObject);
begin
if image2.Enabled=true then
form6.Cursor:=2;
end;
procedure TForm6.Image2MouseLeave(Sender: TObject);
begin
form6.Cursor:=1;
end;
procedure TForm6.Image8Click(Sender: TObject);
begin
Image1.Picture.LoadFromFile('ôîòîêàðòî÷êè\praktikani\ôîíêðàñíûé.bmp');
image2.Visible:=false;
image3.Visible:=false;
image12.visible:=true;
image13.visible:=false;
image8.visible:=false;
end;
procedure TForm6.Image9Click(Sender: TObject);
begin
image9.Visible:=false;
image4.Visible:=false;
label1.Visible:=false;
image8.Enabled:=true;
image2.Enabled:=true;
image13.Visible:=true;
image2.Visible:=true;
image8.Visible:=true;
end;
procedure TForm6.Image9MouseEnter(Sender: TObject);
begin
form6.Cursor:=2;
end;
procedure TForm6.Image9MouseLeave(Sender: TObject);
begin
form6.Cursor:=1;
end;
end.