Delphi - Next a Previous Button
Delphi - Next a Previous Button
Chcel by som vedieť ako spraviť Button Next a Previous, ktorý bude označovať predošlý a ďalší súbor v filelistboxe. Prosím o pomoc. 
-
audiotrack
VIP
- Príspevky: 25958
- Registrovaný: 09 sep 2005, 18:39
- Kontaktovať používateľa:
Kód: Vybrať všetko
with FileListBox1 do begin
if (ItemIndex < Count-1) then Selected[ItemIndex+1]:=true;
end;Kód: Vybrať všetko
with FileListBox1 do begin
if (ItemIndex >0 ) then Selected[ItemIndex-1]:=true;
end;