Autor Beitrag
DeAAL
Hält's aus hier
Beiträge: 10



BeitragVerfasst: Do 09.02.06 15:29 
Zuerst ma: ich bin ein Anfänger in Delphi.

Ich will, dass in meinem Programm folgende 2 Dinge realisiert werden.

(Unter meiner Listbox)

* ein Label, dass die aktuell ausgewählte Listboxzeile anzeigt
* ein Label, dass die Gesamtanzahl der Listboxzeilen anzeigt

Ich weiß, dass man das irgendwie mit den Eigenschaften ItemIndex/Items.Count macht, aber wie genau weiß ich leider nich.

Danke im Vorraus

DeAAL
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 09.02.06 15:37 
Titel: Re: Listbox: 1. Zeile aneigen /// 2. Anzahl der Zeilen anzei
user profile iconDeAAL hat folgendes geschrieben:

* ein Label, dass die aktuell ausgewählte Listboxzeile anzeigt


ausblenden Delphi-Quelltext
1:
label1.caption:=listbox1.items[listbox1.itemindex];					


user profile iconDeAAL hat folgendes geschrieben:

* ein Label, dass die Gesamtanzahl der Listboxzeilen anzeigt


ausblenden Delphi-Quelltext
1:
label1.caption:=inttostr(listbox1.items.count);					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot