Sign in Join
FPDoc Onlineexperiment

TApplication.GetControlAtMouse function

Member of TApplicationpublicIn unit Forms

Gets the control under the mouse pointer.

Declaration

pascal
function GetControlAtMouse: TControl

Function result

The control under the mouse pointer, or Nil at design-time.

Description

GetControlAtMouse is a TControl function used to get the control under the mouse pointer. The return value contains the form or control at the position where the mouse pointer is located. The return value is Nil at design-time.

GetControlAtMouse updates internal members used to track the control and its position.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.