unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, MPlayer, Menus; type TForm1 = class(TForm) Label1: TLabel; Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; Button5: TButton; Button6: TButton; Image1: TImage; MediaPlayer1: TMediaPlayer; Button7: TButton; Button8: TButton; Button9: TButton; Button10: TButton; Button11: TButton; MainMenu1: TMainMenu; J1: TMenuItem; N1: TMenuItem; N2: TMenuItem; N3: TMenuItem; procedure Button1Click(Sender: TObject); 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 Button8Click(Sender: TObject); procedure Button9Click(Sender: TObject); procedure Button10Click(Sender: TObject); procedure Button11Click(Sender: TObject); procedure J1Click(Sender: TObject); procedure N1Click(Sender: TObject); procedure N2Click(Sender: TObject); procedure N3Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation uses Unit2, Unit3, Unit4; {$R *.dfm} procedure TForm1.Button1Click(Sender: TObject); begin Image1.Picture.LoadFromFile('1.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP1.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button2Click(Sender: TObject); begin Image1.Picture.LoadFromFile('2.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP2.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button3Click(Sender: TObject); begin Image1.Picture.LoadFromFile('3.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP3.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button4Click(Sender: TObject); begin Image1.Picture.LoadFromFile('4.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP4.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button5Click(Sender: TObject); begin Image1.Picture.LoadFromFile('5.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP5.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button6Click(Sender: TObject); begin MediaPlayer1.Close; end; procedure TForm1.Button7Click(Sender: TObject); begin Image1.Picture.LoadFromFile('6.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP6.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button8Click(Sender: TObject); begin Image1.Picture.LoadFromFile('7.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP7.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button9Click(Sender: TObject); begin Image1.Picture.LoadFromFile('8.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP8.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button10Click(Sender: TObject); begin Image1.Picture.LoadFromFile('9.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP9.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.Button11Click(Sender: TObject); begin Image1.Picture.LoadFromFile('10.bmp'); MediaPlayer1.Close; MediaPlayer1.FileName:='OP10.mp3'; MediaPlayer1.Open; MediaPlayer1.Play; end; procedure TForm1.J1Click(Sender: TObject); begin form2.ShowModal; end; procedure TForm1.N1Click(Sender: TObject); begin form3.ShowModal; end; procedure TForm1.N2Click(Sender: TObject); begin form4.showmodal; end; procedure TForm1.N3Click(Sender: TObject); begin close; end; end.