FMX.ListView.TListViewBase.OnItemClickEx

From RAD Studio API Documentation
Jump to: navigation, search

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

Sender

The instance of TCustomListView to which the clicked item belongs.

ItemIndex

The index of the clicked item.

LocalClickPos

The coordinates of the click.

ItemObject

The instance of TListItemObject that you click on.

See Also