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