Vcl.ComCtrls.TListView.OnAdvancedCustomDraw
Delphi
property OnAdvancedCustomDraw: TLVAdvancedCustomDrawEvent read FOnAdvancedCustomDraw write FOnAdvancedCustomDraw;
C++
__property OnAdvancedCustomDraw;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TListView |
Description
Occurs at discrete points during the rendering of the list view.
Vcl.ComCtrls.TListView.OnAdvancedCustomDraw inherits from Vcl.ComCtrls.TCustomListView.OnAdvancedCustomDraw. All content below this line refers to Vcl.ComCtrls.TCustomListView.OnAdvancedCustomDraw.
Occurs at discrete points during the rendering of the list view.
Write an OnAdvancedCustomDraw event handler to customize the painting of the list view at various stages before its items are drawn. Unlike the OnDrawItem event, the list view receives this event even if the OwnerDraw property is False.
Note: OnAdvancedCustomDraw occurs at various stages during the paint process. If you are only writing code to execute immediately prior to rendering the list view, it is more efficient to use the OnCustomDraw event.