FMX.ListView.TListViewBase.OnChangeRepainted

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChangeRepainted: TNotifyEvent read FOnChangeRepainted write FOnChangeRepainted;

C++

__property System::Classes::TNotifyEvent OnChangeRepainted = {read=FOnChangeRepainted, write=FOnChangeRepainted};

Properties

Type Visibility Source Unit Parent
event public
FMX.ListView.pas
FMX.ListView.hpp
FMX.ListView TListViewBase

Description

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

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

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

Note: The OnChangeRepainted 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 OnChangeRepainted explicitly.

See Also