RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStaticListAction.OnItemSelected Event

Occurs when a client control executes the action because a user selected one of the items.

Pascal
property OnItemSelected: TItemSelectedEvent;
C++
__property TItemSelectedEvent OnItemSelected;

Write an OnItemSelected event handler to respond when the user selects one of the items supplied to client controls. Before this event is called, the list action first updates the ItemIndex property of any client controls that descend from TCustomListControl. 

Sender is the list action that supplies items to the control in which an item was selected. 

Control is the control in which the user selected an item. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!