Autor Beitrag
XenoX
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 50



BeitragVerfasst: Fr 09.05.03 11:20 
wie kann ich prüfen ob eine zeile makiert wurde sprich das item?
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Fr 09.05.03 11:54 
Hallo,

bist du schon mal in der Hilfe über die Selected eigenschaft gestolpert? die hilft dir weiter.
mit
ausblenden Quelltext
1:
if listview1.selected<>Nil					

kannst du prüfen, ob ein item selektiert ist.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 09.05.03 13:15 
Hallo,

ganz einfach über
ausblenden Quelltext
1:
IF ListView1.Items.Item[X].Selected THEN					


X steht hierbei für die nummer des Elementes (Das erste hat di Nr 0).

Das hättest du aber in der Delphi-Hilfe schneller finden können ;).

Gruß
Klabautermann