[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TCustomTreeView.MouseMove

Handles mouse move messages for the control.

Declaration

Source position: comctrls.pp line 3622

protected procedure TCustomTreeView.MouseMove(

  Shift: TShiftState;

  X: Integer;

  Y: Integer

); override;

Arguments

Shift

  

Shift, Ctrl, or Alt modifier for the mouse message.

X

  

Horizontal coordinate for the mouse pointer.

Y

  

Vertical coordinate for the mouse pointer.

Description

MouseMove is an overridden method in TCustomTreeView used to handle mouse move messages for the control. It calls the inherited method on entry to notify the drag manager when the control is dragged, and signals the OnMouseMove event handler (when assigned).

MouseMove ensures that an automatic insertion mark is generated when needed. It updates the tool tip (or Hint) location. It also updates the hot tracking position when needed. When MultiSelect is enabled, a new tracking position causes the entire control to be redrawn. If MultiSelect is not enabled, only the display rectangles for the previous and the current hot-tracked tree nodes are redrawn.

Version info

Modified in LCL version 4.0 to reduce calls to Invalidate to avoid flicker.

See also

TCustomTreeView.Options

  

The set of options enabled in the tree view control.

TCustomTreeView.HotTrack

  

Enables or disables highlight / underline drawing styles on a tree item when the mouse is hovered over it.

TCustomTreeView.MultiSelect

  

Enables or disables selection of multiple tree nodes at the same time.

TCustomTreeView.Tooltips

  

Indicates whether tool tips (hints) are enabled for nodes on the tree view control.

TCustomTreeView.Invalidate

  

Causes the control to be redrawn when a redraw is not already in progress.

TTreeViewOption

  

TTreeViewOption - enumerated type containing the permissible values for Options in TreeViews.

TControl.MouseMove

  

Handler for MouseMove events.


Version 4.0 Generated 2025-05-03 Home