-
Notifications
You must be signed in to change notification settings - Fork 0
/
Unit10.pas
99 lines (83 loc) · 2.26 KB
/
Unit10.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
unit Unit10;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Imaging.jpeg, Vcl.ExtCtrls,
Vcl.StdCtrls, Vcl.MPlayer;
type
TForm10 = class(TForm)
Image1: TImage;
Panel1: TPanel;
MediaPlayer1: TMediaPlayer;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Button6: TButton;
Button7: TButton;
Button8: TButton;
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
procedure Button7Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure Button8Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form10: TForm10;
implementation
{$R *.dfm}
uses Unit5;
procedure TForm10.Button1Click(Sender: TObject);
begin
Form5.Show;
Form10.Hide;
end;
procedure TForm10.Button2Click(Sender: TObject);
begin
Mediaplayer1.FileName:=ExtractFilePath(Application.ExeName)+'1\14.wmv';
Mediaplayer1.open;
Mediaplayer1.play;
end;
procedure TForm10.Button3Click(Sender: TObject);
begin
Mediaplayer1.FileName:=ExtractFilePath(Application.ExeName)+'1\15.wmv';
Mediaplayer1.open;
Mediaplayer1.play;
end;
procedure TForm10.Button4Click(Sender: TObject);
begin
Mediaplayer1.FileName:=ExtractFilePath(Application.ExeName)+'1\16.wmv';
Mediaplayer1.open;
Mediaplayer1.play;
end;
procedure TForm10.Button5Click(Sender: TObject);
begin
Mediaplayer1.FileName:=ExtractFilePath(Application.ExeName)+'1\17.wmv';
Mediaplayer1.open;
Mediaplayer1.play;
end;
procedure TForm10.Button6Click(Sender: TObject);
begin
Mediaplayer1.FileName:=ExtractFilePath(Application.ExeName)+'1\18.wmv';
Mediaplayer1.open;
Mediaplayer1.play;
end;
procedure TForm10.Button7Click(Sender: TObject);
begin
Mediaplayer1.FileName:=ExtractFilePath(Application.ExeName)+'1\19.wmv';
Mediaplayer1.open;
Mediaplayer1.play;
end;
procedure TForm10.Button8Click(Sender: TObject);
begin
Mediaplayer1.Close;
end;
end.