FMX.ListView.TListView.OnItemClick
Delphi
property OnItemClick;
C++
__property OnItemClick;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FMX.ListView.pas FMX.ListView.hpp |
FMX.ListView | TListView |
Description
Occurs immediately after clicking an item from the list view.
FMX.ListView.TListView.OnItemClick inherits from FMX.ListView.TAppearanceListView.OnItemClick. All content below this line refers to FMX.ListView.TAppearanceListView.OnItemClick.
Occurs immediately after clicking an item from the list view.
Write an OnItemClick event handler to respond to clicking on an item from the list view component.
OnItemClick is an event of type TItemEvent.
Do not modify the contents of the list view in the OnItemClick event handler (do not add, remove, update or change the order of list view items). If you need to do that, use OnItemClickEx event handler instead. It is safe to modify the content of the items themselves in both of those handlers.
The OnItemClick event handler receives the following parameters:
Parameter | Description |
---|---|
|
The instance of TCustomListView to which the clicked item belongs. |
|
The instance of Appearances.TListViewItem that you click on. |