Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

FindDragTarget

Gets the drag target at the specified screen position.

Declaration

Source position: controls.pp line 2736

function FindDragTarget(

  const Position: TPoint;

  AllowDisabled: Boolean

):TControl;

Arguments

Position

  

The screen position.

AllowDisabled

  

Also finds disabled controls, if True.

Function result

The control at Position; Nil if none.

Description

Disabled controls should be excluded, but are not due to an bug in FindControlAtPosition.



CT Web help

CodeTyphon Studio