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

TCustomListBox.ItemAtPos

Get the item index for the given client coordinates.

Declaration

Source position: stdctrls.pp line 576

public function TCustomListBox.ItemAtPos(

  const Pos: TPoint;

  Existing: Boolean

):Integer;

Arguments

Pos

  

The item position.

Existing

  

True when the index is requested for insertion of a new item.

Function result

The calculated item index, can be out of the Items bounds.

See also

TCustomListBox.GetIndexAtXY

  

Find the item at the given client coordinates.

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