Vcl.ListActns.TStaticListAction.OnGetItem
Delphi
property OnGetItem;
C++
__property OnGetItem;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ListActns.pas Vcl.ListActns.hpp |
Vcl.ListActns | TStaticListAction |
Description
Occurs when the static list action supplies an item to its client controls.
Vcl.ListActns.TStaticListAction.OnGetItem inherits from Vcl.ListActns.TCustomStaticListAction.OnGetItem. All content below this line refers to Vcl.ListActns.TCustomStaticListAction.OnGetItem.
Occurs when the static list action supplies an item to its client controls.
Write an OnGetItem event handler to customize the properties of an item before it is supplied to client controls. The GetItem method generates an OnGetItem event for every item it supplies to clients, passing in the current item from the Items property. You can change that item's properties in the event handler before it is added to client controls.
Sender is the list action that is supplying data to client controls.
Index indicates which item is requested, where 0 is the first item, 1 is the second item and so on up to the index that is one less than the value of the Count property.
Item is the item that the action is about to supply to the user. You can change any of its properties before it is passed on to the action's client.