Show: Delphi C++
Display Preferences

FMX.ListView.TAppearanceListView.OnItemClick

From RAD Studio API Documentation
Jump to: navigation, search

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

Sender

The instance of TCustomListView to which the clicked item belongs.

AItem

The instance of Appearances.TListViewItem that you click on.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance