Autor Beitrag
huhn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 272
Erhaltene Danke: 1

WIN XP
D7Pers
BeitragVerfasst: Mo 14.02.05 20:59 
Hi leut! :D
hab folgendes problem:
ich habe 2 Listboxen mit jeweiligen vertikalen Scrollbalken, nun möchte ich machen wenn man in der listbox1 scrollt sich genauso listbox2 mit dem dazugehörigen scrollbalken verhällt. Habt ihr ne Idee wie man das realisieren kann?? :?:
ich hab schon fleißig gesucht aber nix gefunden,hab au mal mit scrollpos und so probiert, es will aber irgendwie net.
ich dank euch schon mal im vorraus!
MfG huhn
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Di 15.02.05 10:34 

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
huhn Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 272
Erhaltene Danke: 1

WIN XP
D7Pers
BeitragVerfasst: Di 15.02.05 15:22 
jo danke hat mir sehr geholfen!!! :D
ich habs jetzt so gemacht(für alle nach mir :!: ):
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.Timer(Sender: TObject);
var f:integer;
begin
   f:=ListBox1.TopIndex;
   listbox2.TopIndex:=f;
//oder kürzer und ohne Variable: 
//listbox2.topindex:=listbox1.topindex;
end;

ich hab des unter ner Clock die ich sowieso drinne hatte, bin mir aber sicher das man es au noch wo anders unterbringen kann(könnts ja dann hier posten*g*).
Mfg Huhn
und nomal great Thx!