API:Vcl.ComCtrls.THeaderControl.OnDrawSection
Delphi
property OnDrawSection: TDrawSectionEvent read GetOnDrawSection write SetOnDrawSection;
C++
__property TDrawSectionEvent OnDrawSection = {read=GetOnDrawSection, write=SetOnDrawSection};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | THeaderControl |
Description
Draws header section.
Vcl.ComCtrls.THeaderControl.OnDrawSection inherits from Vcl.ComCtrls.TCustomHeaderControl.OnDrawSection. All content below this line refers to Vcl.ComCtrls.TCustomHeaderControl.OnDrawSection.
Draws header section.
Use OnDrawSection to define custom section drawing code. OnDrawSection occurs only if the header section’s Style property (accessed through the Sections array) is set to hsOwnerDraw.
OnDrawSection is an event handler of type TCustomDrawSectionEvent.