TTreeView Autoexpand while Hovering 1.0

By Miguel Gastelumendi

Freeware 27 Apr 2008

In category

Code Samples > Samples > Components

Description

This is an implementation to a TTreeView’s node so it would automatically expand or contract when an object hovers over it, during a Drag/Drop operation.

Unfortunately, if no special code is added, the treeview gets messy and a full repaint is need.

To fix this behaviour, TTreeview is subclassed in order to access the dragObject and use the HideDragImage/ShowDragImage methods.

Informations

  • Status: Fully functional
  • Source: FW
  • Size: 2 513kB

Platforms:

  • Delphi 7

Downloads