RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListAction.ExecuteTarget Method

Generates an OnItemSelected event.

Pascal
procedure ExecuteTarget(Target: TObject); override;
C++
virtual __fastcall ExecuteTarget(TObject * Target);

ExecuteTarget is called automatically when the user selects one of the items that the list action supplies to a client list box or combo box. 

Target is the control whose item was selected. 

ExecuteTarget updates the ItemIndex property of all client controls that descend from TCustomListControl, and then generates an OnItemSelected event, where your application can respond to the user's selection. 

 

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