Sign in Join
FPDoc Onlineexperiment

TCustomListBox.GetIndexAtY function

Member of TCustomListBoxpublicIn unit StdCtrls

Gets the index position for the item at the specified vertical coordinate.

Declaration

pascal
function GetIndexAtY(Y: Integer): Integer

Arguments

Y

The vertical client coordinate.

Function result

The item index, -1 if no item could be found.

Description

Calls GetIndextAtXY to get the return value using the vertical coordinate in Y. The value 1 is used as the horizontal coordinate.

See also

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