FMX.ListView.TListView.OnChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChange: TNotifyEvent read FOnChange write FOnChange;

C++

__property OnChange;

Properties

Type Visibility Source Unit Parent
event published
FMX.ListView.pas
FMX.ListView.hpp
FMX.ListView TListView

Description

Occurs when the ItemIndex property changes as a result of a user selecting a different item.

FMX.ListView.TListView.OnChange inherits from FMX.ListView.TListViewBase.OnChange. All content below this line refers to FMX.ListView.TListViewBase.OnChange.

Occurs when the ItemIndex property changes as a result of a user selecting a different item.

Write an OnChange event handler to respond to changes of the ItemIndex property. OnChange allows a response once the list has been successfully changed.

OnChange is an event of type TNotifyEvent. If you want to wait for the list to be repainted to reflect the change, see OnChangeRepainted.

Note: The OnChange event does not occur when you change the ItemIndex property from code. That is the intended functionality. If you want to replicate the behaviour of a user selecting a different item, call OnChange explicitly.

See Also