Autor Beitrag
Skorsi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 29.10.03 15:20 
Hallo,

ich habe eine TListview die auf MultiSelect gestellt ist.
Nun meine Frage : Wie kann ich einzelne Einträge in der ListView markieren?

Vielen Dank,
skorsi
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mi 29.10.03 15:27 
Hallo,

jedes TListItem hat die Eigenschaft Selected. Um den 1. und 3. Eintrag einer Listview zu markieren kannst Du folgendermaßen vorgehen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
with ListView1 do
begin
  Items[0].Selected:=True;
  Items[2].Selected:=True;
end;

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Skorsi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 29.10.03 15:29 
Nein das geht so irgendwie nicht!!!
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Mi 29.10.03 15:30 
Hallo,

warum soll das nicht gehen?
Stelle evtl. HideSelection auf False.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Skorsi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: Mi 29.10.03 15:33 
Danke daran habe ich gar nicht gedacht!!!!!!!