Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Sa 08.02.03 19:57 
Hallo,

wie ändere ich den ItemIndex bei einer ListView ? bei einer ListBox ist das ja einfach:
ausblenden Quelltext
1:
listBox1.ItemIndex:=2;					

gibt es sowas auch für die ListView1 ?

Moderiert von user profile iconTino: Code-Tags hinzugefügt.

_________________
MFG
Michael Springwald, "kann kein englisch...."
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: Sa 08.02.03 20:27 
Hallo

welche Delphi-Version hast du ?
Listview.itemindex gibt es ab D6.
ansonsten kannst du mit
ausblenden Quelltext
1:
Listview.selected := Listview.items[x]					

ein item markieren

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Sa 08.02.03 20:30 
Danke!

_________________
MFG
Michael Springwald, "kann kein englisch...."
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 10.02.03 21:30 
Naja ein kleiner hacken ist an der Sache:
Leider Scrollt die Funktion nicht mit !
TopItem( Was mir hier gesagt wurde) ist leider auch nicht das ware;)
Ich habe "Delphi 5 Standart"

_________________
MFG
Michael Springwald, "kann kein englisch...."
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: Mo 10.02.03 21:33 
hallo, ist jetzt aus dem Gedächtnis
ausblenden Quelltext
1:
listview1.selected.makevisible(false);					


Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 10.02.03 21:42 
Ne geht auch leider nicht;)
Kann mir da keiner ein Tip geben ?
Wie ich wenn ich den Index änder das dann auch mit gescrollt wird(wenn nötig ?)

_________________
MFG
Michael Springwald, "kann kein englisch...."
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 10.02.03 21:45 
So geht doch;)
Habe nur einen fehler gemacht!

_________________
MFG
Michael Springwald, "kann kein englisch...."