Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi nächtes item aus listbox auswählen (https://www.delphipraxis.net/13869-naechtes-item-aus-listbox-auswaehlen.html)

Toenn 28. Dez 2003 11:47


nächtes item aus listbox auswählen
 
Hi @ all,
wie wähle ich das nächste item aus einer listbox aus?

best regards
tuenn

sry: falsches board, hab grad an meinem mediaplayer gedacht den ich gerade programmieren :wall:

Luckie 28. Dez 2003 11:48

Re: nächtes item aus listbox auswählen
 
Delphi-Quellcode:
Listbox1.Selecedt[Listbox1.ItemIndex+1] := True;

sakura 28. Dez 2003 11:49

Re: nächtes item aus listbox auswählen
 
Ganz einfach:

Delphi-Quellcode:
if ListBox1.ItemIndex < Pred(ListBox1.Items.Count) then
  ListBox1.ItemIndex := ListBox1.ItemIndex + 1
else
  ListBox1.ItemIndex := 0;
...:cat:...

und schwups...

P.S. :roll:

Toenn 28. Dez 2003 11:51

Re: nächtes item aus listbox auswählen
 
thx, geht


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:08 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz