unit praktek1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, jpeg, MMsystem, Vcl.Imaging.pngimage ;
type
TForm1 = class(TForm)
Image1: TImage;
Image2: TImage;
Image3: TImage;
Image4: TImage;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
procedure Image1Click(Sender: TObject);
procedure Image2Click(Sender: TObject);
procedure Image3Click(Sender: TObject);
procedure Image4Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
end;
procedure TForm1.Image1Click(Sender: TObject);
begin
sndPlaySound('E:\NADAOKTAF\Dtmf0.wav',SND_NODEFAULT Or SND_ASYNC);
end;
procedure TForm1.Image2Click(Sender: TObject);
begin
sndPlaySound('E:\NADAOKTAF\Dtmf1.wav',
SND_NODEFAULT Or SND_ASYNC );
end;
procedure TForm1.Image3Click(Sender: TObject);
begin
sndPlaySound('E:\NADAOKTAF\Dtmf2.wav',
SND_NODEFAULT Or SND_ASYNC );
end;
procedure TForm1.Image4Click(Sender: TObject);
begin
sndPlaySound('E:\NADAOKTAF\Dtmf3.wav',
SND_NODEFAULT Or SND_ASYNC );
end;
end.