The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Unit: SDL_replist
Class: TReportListView
Declaration: property OnBeforeRenderCell: TRenderCellEvent;
{ TRenderCellEvent = procedure (Sender: TObject; ACol, ARow: integer; var PenColor, BrushColor, FontColor: TColor; var FontStyles: TFontStyles; var Text: string) of object; }

The event OnBeforeRenderCell provides a hook for adjusting the colors, the font and the contents of a data cell of the report list. The event OnBeforeRenderCell occurs immediately before the data cell specified by the parameters ACol and ARow is drawn. The parameters PenColor, BrushColor, and FontColor contain the colors of the pen, the brush, and the font, respectively. The parameter FontStyles determines the style of the font, and the parameter Text may be used to adjust the displayed text.

Example: This property is used in the following example program (see for downloading the code): multilinreg

Last Update: 2023-Dec-13