Autor Beitrag
delphimike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 117



BeitragVerfasst: Fr 21.02.03 17:35 
Wir scrollt ein TTreeview Inhalt bei drag&drop wenn die obere /untere Fenstergrenze erreicht wird? Von alleine passiert gar nichts und die Elemente lassen sich dann oft nicht ablegen.
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Fr 21.02.03 19:53 
Vielleicht hielft Dir ja dieser Link :

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.TreeView1DragOver(Sender, Source: TObject; X, Y: Integer; 
  State: TDragState; var Accept: Boolean); 
begin 
  if (y < 15) then {On the upper edge - should scroll up } 
    SendMessage(TreeView1.Handle, WM_VSCROLL, SB_LINEUP, 0) 
  else if (TreeView1.Height - y < 15) then { On the lower edge - should scroll down } 
    SendMessage(TreeView1.Handle, WM_VSCROLL, SB_LINEDOWN, 0); 
end;


Moderiert von user profile iconTino: Inahlt von SwissDelphiCenter eingefügt.