Changing drag cursor in VirtualTreeView

Posted by Coder12345 on Stack Overflow See other posts from Stack Overflow or by Coder12345
Published on 2012-10-20T21:47:26Z Indexed on 2012/10/20 23:01 UTC
Read the original article Hit count: 347

When using VirtualTreeView drag operation by default is [doCopy,doMove]. Move operation is indicated by arrow pointer with small box and Copy operation is indicated by same pointer icon but with added [+] next to it.

By default VT uses copy operation and if you press modifier key (SHIFT key) it modifies operation to move therefore removing the [+] from pointer.

Here is what I need:

  • reverse the operations (default would be move, with modifier key pressed - copy) and thus reverse pointer arrow too
  • replace modifier key - CTRL instead of SHIFT
  • read in an event which of the two operations occurred and start copy or move operation

Any pointers into right direction(s) appreciated.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about c++builder