RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListView.OnChange Event

Occurs immediately after an item in the list changes.

Pascal
property OnChange: TLVChangeEvent;
C++
__property TLVChangeEvent OnChange;

Write an OnChange event handler to respond to changes in the list items. OnChange allows a response once the list has been successfully changed.  

The Item parameter is the list item that just changed. The Change parameter indicates the type of change that just occurred. Change is ctText if the Caption property of the item changed. Change is ctImage if the ImageIndex property of the item changed or the appropriate image list changed in the list view. Change is ctState if the Cut, Focused, or Selected property of the item changed. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!