Icon ControlAt Method

function ControlAt(X,Y: Integer): TControl

Available In: Visual Client Applications

Use this method to find the control, if one exists, at the specified coordinates. The search is performed using the visual stacking order defined by the DisplayOrder property of each control. Controls with a smaller display order (in front of other controls) will be found instead of controls with a larger display order, even if both controls have the same bounds.