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

TCustomListBox.TopIndex

Index of the first visible (or top-most) item.

Declaration

Source position: stdctrls.pp line 683

public property TCustomListBox.TopIndex : Integer
  read GetTopIndex
  write SetTopIndex
  default 0;

Description

TopIndex is an Integer property which contains the ordinal position in Items for the first visible list item in the scrollable control. The default value for the property is 0 (the first value in Items).

The property value is retrieved from the widgetset class when a handle has been allocated for the control. Setting a new value for the property causes the widgetset class to be notified of the value change when a handle has been allocated for the control.

The value in TopIndex is updated in the MakeCurrentVisible method where the current selection in ItemIndex is assigned to the property.

See also

TCustomListBox.Items

  

The list of all items defined in the control.

TCustomListBox.ItemHeight

  

The default height for an item displayed in the list.

TCustomListBox.MakeCurrentVisible

  

Makes the item at ItemIndex visible, possibly scrolling the list.


Version 3.2 Generated 2024-02-25 Home