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

TApplication.GetControlAtMouse

Gets the control under the mouse pointer.

Declaration

Source position: forms.pp line 1601

public function TApplication.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.


Version 3.2 Generated 2024-02-25 Home