FMX.ListView.TListViewBase.OnItemClickEx
Delphi
property OnItemClickEx: TListItemClickEventEx read FOnItemClickEx write FOnItemClickEx;
C++
__property TListItemClickEventEx OnItemClickEx = {read=FOnItemClickEx, write=FOnItemClickEx};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.ListView.pas FMX.ListView.hpp |
FMX.ListView | TListViewBase |
Description
Occurs immediately after clicking an item from the list view. OnItemClickEx also receives mouse coordinates inside the clicked item.
Write an OnItemClickEx event handler to respond to clicking an item from the list view component.
It is safe to modify the contents of the list view in the OnItemClickEx event handler (you may add, remove, update or change the order of list view items). If you do not need to do that, you can also use OnItemClick event handler. It is safe to modify the content of the items themselves in both of those handlers.
The OnItemClickEx event handler receives the following parameters:
Parameter | Description |
---|---|
|
The instance of TCustomListView to which the clicked item belongs. |
|
The index of the clicked item. |
|
The coordinates of the click. |
|
The instance of TListItemObject that you click on. |