Vcl.ListActns.TCustomListAction.OnItemSelected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnItemSelected: TItemSelectedEvent read FOnItemSelected write FOnItemSelected;

C++

__property TItemSelectedEvent OnItemSelected = {read=FOnItemSelected, write=FOnItemSelected};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.ListActns.pas
Vcl.ListActns.hpp
Vcl.ListActns TCustomListAction

Description

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

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.

See Also