FMX.ListView.TAppearanceListView.OnItemClick
Delphi
property OnItemClick: TItemEvent read FOnItemClick write FOnItemClick;
C++
__property TItemEvent OnItemClick = {read=FOnItemClick, write=FOnItemClick};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.ListView.pas FMX.ListView.hpp |
FMX.ListView | TAppearanceListView |
Description
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. |