Vcl.ComCtrls.TListView.OnGetSubItemImage
Delphi
property OnGetSubItemImage: TLVSubItemImageEvent read FOnGetSubItemImage write FOnGetSubItemImage;
C++
__property OnGetSubItemImage;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TListView |
Description
Occurs when a subitem is about to be displayed in the column of a list view control. {{#multireplace:Vcl.ComCtrls.TListView.OnGetSubItemImage|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.ComCtrls.TCustomListView.OnGetSubItemImage|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.ComCtrls.TCustomListView.OnGetSubItemImage|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
Occurs when a subitem is about to be displayed in the column of a list view control.
Use OnGetSubItemImage to dynamically assign an image to a subitem before it is displayed in the column of a list view control. This event overrides the value specified by the list item's SubItemImages property.
Note: OnGetSubItemImage only occurs if the list view's ViewStyle property is
vsReportand the current list item's SubItems property contains subitems.
OnGetSubItemImage is an event handler of type Vcl.ComCtrls.TLVSubItemImageEvent.