Тема: Кнопк'Next'
Показать сообщение отдельно
  #3  
Старый 12.07.2007, 19:18
Аватар для Dimanus
Dimanus Dimanus вне форума
Прохожий
 
Регистрация: 20.11.2006
Адрес: Россия г.Братск
Сообщения: 33
Репутация: 10
По умолчанию

Можно таким не замысловатым способом.

procedure TMPForm.SpeedButton3Click(Sender: TObject);// Next
begin
if ListBox1.ItemIndex < ListBox1.Count then
ListBox1.ItemIndex := ListBox1.ItemIndex + 1;
if SpeedButton2.Tag = 1 then // SpeedButton2 - это Play.
Play;
end;
Ответить с цитированием