Virtual-TreeView icon indicating copy to clipboard operation
Virtual-TreeView copied to clipboard

Draw drag header - windows zoom

Open ElRicoB21 opened this issue 3 years ago • 2 comments

Draw drag a header when using Windows zoom (Win 10, zoom by combo items) is Incorrect. See video attachment.

https://user-images.githubusercontent.com/116547342/197475127-24729a63-94fc-4e1e-ab41-9c6fa67a374c.mp4

ElRicoB21 avatar Oct 24 '22 07:10 ElRicoB21

Hi, isn't this issue with zoom itself?

livius2 avatar Oct 25 '22 20:10 livius2

While during drag&drop of nodes VTV lets the system do the drawing of the drag image (via IDataObject and IDragSourceHelper), during header drag the VTV control does the drawing on its own. So some dummy IDataObject could improve the situation and allow us to eliminate those old code paths. Methods to look into:

  • TVTDragImage.PrepareDrag()
  • TVTHeader.DragTo()
  • TBaseVirtualTree.UpdateWindowAndDragImage()

Issue #1138 was created to prepare for this issue.

joachimmarder avatar Oct 26 '22 11:10 joachimmarder