Autor Beitrag
Rool
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Do 29.05.03 21:30 
Beim Listview gibts die Funktion Scroll. Die gibts beim Treeview leider nicht! Wie kann ich ihn trotzdem von aussen scrollen?

_________________
MFG Rool
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Do 29.05.03 21:50 
Hi!

So kannst du scrollen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
 // Nach oben scrollen
 TreeView1.Perform( WM_VSCROLL, SB_LINEUP, 0 );
 // Nach unten scrollen
 TreeView1.Perform( WM_VSCROLL, SB_LINEDOWN, 0 );
Rool Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Fr 30.05.03 08:39 
Gibt es eine Möglichkeit es irgendwie über das setzen der Positionen der Scrollbars zu machen?
ausblenden Delphi-Quelltext
1:
SetScrollPos(Treeview.Handle,SB_VERT,Scrollbar.Position,true);					

So wird bisher nur die Scrollbar gesetzt, dass geht bestens, aber es wird anscheinend keine Message an den Treeview geschickt, dass er seinen Inhalt scrollen soll!

_________________
MFG Rool