Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Система";
Текущий архив: 2002.02.25;
Скачать: [xml.tar.bz2];

Вниз

помогите чем можете   Найти похожие ветки 

 
Прикольщик   (2001-11-15 22:54) [1]


procedure TTMPMainForm.SliderMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
MPlayer.Position := Slider.Value;
MPlayer.Play;
trMove := False;
end;
procedure TTMPMainForm.NextSong(Num: Integer);
begin
if (HistoryList.Items.Count > 1) and
(((Num > 0) and (HistoryList.ItemIndex < HistoryList.Items.Count - Num)) or
((Num < 0) and (HistoryList.ItemIndex > -1 - Num))) then begin
HistoryList.ItemIndex := HistoryList.ItemIndex + Num;
HistoryListDblClick(Self);
end;
end;
procedure TTMPMainForm.Label1Click(Sender: TObject);
begin
if Direction = 0 then
Direction := 1
else
Direction := 0;
end;

procedure TTMPMainForm.FormResize(Sender: TObject);
begin
if Width < 255 then
Width := 255;
if Height < 150 then
Height := 150;
end;

procedure TTMPMainForm.MPlayerClick(Sender: TObject; Button: TMPBtnType;
var DoDefault: Boolean);
begin
DoDefault:=false;
if (Button=btEject) and (OpenDlg.Execute) then
begin
HistoryList.Items:=OpenDlg.Files;
DirBox.Directory:=ExtractFilePath(OpenDlg.FileName);
DirBox.Update;
end
else
if Button=btPlay then begin
if HistoryList.ItemIndex > -1 then
HistoryListDblClick(self)
else
if MPlayer.FileName<>"" then
begin
try MPlayer.Open;
Slider.MaxValue:=MPlayer.Length;
fPS:=true;
MPlayer.Play;
except
on E: Exception do begin
MPlayer.Close;
ShowMessage(E.Message);
end;
end;
end;
end else if (Button = btPause) and (MPlayer.Mode <> mpPaused) then
MPlayer.Pause
else if (Button = btPause) and (MPlayer.Mode = mpPaused) then
MPlayer.Resume
else if Button = btStop then begin
fPS := False;
MPlayer.Stop;
Slider.Value := MPlayer.Start;
Label1.Caption := "0 : 0";
end else if Button = btNext then
NextSong(1)
else if Button = btPrev then
NextSong(-1);
end;

procedure TTMPMainForm.LoadPlayList1Click(Sender: TObject);
begin
if PlayLisiDlg.Execute then
begin
PlayName:=PlayLisiDlg.FileName;
HistoryList.Items.LoadFromFile(PlayName);
end;
end;

procedure TTMPMainForm.SavePlayList1Click(Sender: TObject);
begin

if SaveListDlg.Execute then
begin
HistoryList.Items.SaveToFile(SaveListDlg.FileName);
end;
end;

procedure TTMPMainForm.CreatePlayList1Click(Sender: TObject);
begin
if SaveListDlg.Execute then
begin
HistoryList.Items.SaveToFile(SaveListDlg.FileName);
end
else
begin
Application.MessageBox("PlayList empty, for the beginning load the list of tunes !","Stop !",MB_ICONSTOP);
end;
end;
end.



Страницы: 1 вся ветка

Форум: "Система";
Текущий архив: 2002.02.25;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.004 c
6-79421
NailS
2001-11-29 15:09
2002.02.25
Алгоритмы передачи данных для TCP


7-79495
MJH
2001-11-20 14:44
2002.02.25
DirectSound


4-79517
AlexandrH_
2001-12-25 09:29
2002.02.25
Указатель


14-79463
Filat
2002-01-09 13:15
2002.02.25
Как при помощи NORTON GHOST сделать копию партишина в имидж вин2000 сервер, чтобы сохранился файл подкачи.


14-79429
Ежик
2001-12-23 15:08
2002.02.25
Помогите плиииз установить библиотеку LMD50Se





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский