[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomGrid.OnPrepareCanvas

Event handler signalled to prepare the Canvas for drawing.

Declaration

Source position: grids.pas line 1279

protected property TCustomGrid.OnPrepareCanvas : TOnPrepareCanvasEvent
  read FOnPrepareCanvas
  write FOnPrepareCanvas;

Description

OnPrepareCanvas is a TOnPrepareCanvasEvent property with the event handler signalled to configure the control Canvas to draw a cell using a specific state. OnPrepareCanvas is signalled (when assigned) from the PrepareCanvas method. It allows the Pen, Brush, Font, and Color defaults assigned in PrepareCanvas to be overridden for a specified column, row, or TGridDrawState value.

See also

TCustomGrid.PrepareCanvas

  

Prepares the canvas for drawing the cell at the specified location.

TOnPrepareCanvasEvent

  

Specifies an event handler signalled when preparing the canvas for a grid control.

TGridDrawState

  

Enumeration with Grid draw state values.