FMX.ListBox.TCustomListBox.OnItemClick

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnItemClick: TItemClickEvent read FOnItemClick write FOnItemClick;

C++

__property TItemClickEvent OnItemClick = {read=FOnItemClick, write=FOnItemClick};

Properties

Type Visibility Source Unit Parent
event public
FMX.ListBox.pas
FMX.ListBox.hpp
FMX.ListBox TCustomListBox

Description

Occurs immediately after clicking an item from the listbox.

Write an OnItemClick event handler to respond to clicking on an item from the listbox component.

The event handler for the OnItemClick event receives two arguments:

  • Sender: The TCustomListBox instance that holds the list box item that was clicked.
  • Item: The TListBoxItem instance that was clicked.

OnItemClick is an event of type TItemClickEvent.

See Also