Autor Beitrag
mb
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 185



BeitragVerfasst: Fr 11.04.03 12:40 
Hallo!

Wie kann ich in einer Listbox (oder auch im Listview) an eine bestimmte Position scrollen?
(z.B. zu Eintrag-Text oder Index-Nr)

_________________
Gruß,
MB
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 11.04.03 12:54 
Hallo:

Listbox: einfach Itemindex setzen, auch mal Topindex-eigenschaft anguugn.

Listview: ein Listitem kennt die methode makevisible. wie du das entsprechende Listitem ermittelst, hängt von der Delphi-version ab. Ab D6 hast du auch eine Eigenschaft itemindex beim Listview.

Mfg Frank

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



BeitragVerfasst: Fr 11.04.03 12:56 
[quote="Keldorn]
Listbox: einfach Itemindex setzen, auch mal Topindex-eigenschaft anguugn[/quote]

Ich seh mir das (auch mit TopIndex) noch mal an, allerdings hatte es gerade mit dem einfach setzen des ItemIndex nicht geklappt. Auf die (intuitive) Idee war ich auch schon gekommen.

Danke für den ListView-Tipp.

_________________
Gruß,
MB