JVCL Help:TJvDBGrid.OnDrawColumnTitle

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when a column header is to be drawn.


Pascal

 TDrawColumnTitleEvent = procedure (Sender: TObject; ACanvas: TCanvas; ARect: TRect; AColumn: TColumn; var ASortMarker: TJvDBGridBitmap; IsDown: Boolean; var Offset: Integer; var DefaultDrawText, DefaultDrawSortMarker: Boolean) ofobject;
propertyOnDrawColumnTitle: TDrawColumnTitleEvent;


Parameters

Parameters Description
Offset The default offset of the text
IsDown Indicates whether the button is down or not.
DefaultDrawSortMarker Specifies whether the default method should draw the sort marker.
DefaultDrawText Specifies whether the default method should draw the text.
ASortMarker The sort marker to display.
ACanvas The canvas to draw on.
Sender The grid that triggered the event.
AColumn Description for this parameter
ARect The rect area to draw in.


Description

Write a handler for the OnDrawColumnTitle to custom draw the title buttons in the grid.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page