Link to home
Start Free TrialLog in
Avatar of SirWinston8
SirWinston8

asked on

Drawing problem with own DragImage in Treeview

Hi experts,

if I use a own DragImage within a class, derived from TDragObject, then they
nodes are not correctly drawn while I move with the DragImage over the treenodes?
If I move beside the treenodes they are drawn correctly!

I think that anyone is wrong in my use of TDragObject???

Can anyone help me??

regards

William
ASKER CERTIFIED SOLUTION
Avatar of Jacco
Jacco
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I mean paste some code here :)
Avatar of SirWinston8
SirWinston8

ASKER

Thank you for your fast help!

You take me on the right way, I forget to override these methods in my DragObject:

procedure TMyDragObject.ShowDragImage;
begin
  FDragImages.ShowDragImage;
end;

procedure TMyDragObject.HideDragImage;
begin
  FDragImages.HideDragImage;
end;

To refresh the Treeview is not neccesary!

Regards

William