-
Notifications
You must be signed in to change notification settings - Fork 0
/
Unit13.pas
73 lines (60 loc) · 1.57 KB
/
Unit13.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
unit Unit13;
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.MPlayer, Vcl.StdCtrls;
type
TForm13 = class(TForm)
Image1: TImage;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Panel1: TPanel;
MediaPlayer1: TMediaPlayer;
MediaPlayer2: TMediaPlayer;
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form13: TForm13;
implementation
{$R *.dfm}
uses Unit5;
procedure TForm13.Button1Click(Sender: TObject);
begin
Form5.Show;
Form13.Hide;
end;
procedure TForm13.Button2Click(Sender: TObject);
begin
Mediaplayer2.FileName:=ExtractFilePath(Application.ExeName)+'1\52.wmv';
Mediaplayer2.open;
Mediaplayer2.play;
end;
procedure TForm13.Button3Click(Sender: TObject);
begin
Mediaplayer2.FileName:=ExtractFilePath(Application.ExeName)+'1\53.wmv';
Mediaplayer2.open;
Mediaplayer2.play;
end;
procedure TForm13.Button4Click(Sender: TObject);
begin
Mediaplayer2.FileName:=ExtractFilePath(Application.ExeName)+'1\54.wmv';
Mediaplayer2.open;
Mediaplayer2.play;
end;
procedure TForm13.Button5Click(Sender: TObject);
begin
Mediaplayer2.Close;
end;
end.