folderlistview OnDrawHeaderSection event
Return to Introduction  Previous page  Next page
Applies to
dcFolderListView component.  

  TacListViewDrawHeaderSection = procedure(Sender: TObject; Canvas: TCanvas; Rect: TRect; ColumnIndex: Integer; Pressed: Boolean) of object;  
property OnDrawHeaderSection: TacListViewDrawHeaderSection;  

The OnDrawHeaderSection event occurs when the header section needs to be drawn.  
Write an OnDrawHeaderSection event handler to draw the contents for all the sections in the ListView. Draw on the header using the methods of the Canvas property. The Rect parameter indicates the location of the cell on the canvas. The ColumnIndex parameter indicate the column of the header that should be drawn. The Pressed parameter indicates whether the coulum is selected by mouse (pressed).  
If the OnDrawHeaderSection handler is not assigned, the component will paint default content.