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

TCustomControlBar.HitTest

Gets the visible control for a band under the specified coordinates.

Declaration

Source position: extctrls.pp line 1590

public function TCustomControlBar.HitTest(

  X: Integer;

  Y: Integer

):TControl;

Arguments

X

  

Horizontal position for the test.

Y

  

Vertical position for the test.

Function result

The tool bar or tool button in the band at the specified position, or Nil when a visible control is not found.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.