Class TFooterRow

Unit

Declaration

type TFooterRow = class(TPersistent)

Description

define object for setting of summary footer row used by TrDBGrid

Hierarchy

  • TPersistent
  • TFooterRow

Overview

Methods

Public function FooterRect: TRect;
Public function FooterCellRect(ACol: integer): TRect;
Public function IsFooterDefined(Field: TField): boolean;
Public function GetFooterText(Field: TField): string;
Public procedure Refresh;

Properties

Published property FooterVisible: boolean read FFooterVisible write SetFooterVisible default false;
Published property FooterHeight: integer read FFooterHeight write SetFooterHeight default 0;
Published property ParentFont: boolean read FParentFont write SetParentFont default true;
Published property Font: TFont read FFont write SetFont stored IsFontStored;
Published property BoldText: boolean read FBoldText write SetBoldText default false;
Published property Color: TColor read FColor write SetColor default clNone;
Published property ShowCellLines: boolean read FShowCellLines write SetShowCellLines default true;
Published property CellLinesColor: TColor read FCellLinesColor write SetCellLinesColor default clNone;
Published property FixedColText: string read FFixedColText write SetFixedColText;
Published property SimpleText: string read FSimpleText write SetSimpleText;
Published property SimpleTextAlign: TAlignment read FSimpleTextAlign write SetSimpleTextAlign default taLeftJustify;
Published property FieldFooterDefs: TStrings read FFieldFooterDefs write SetFieldFooterDefs;
Published property RecalculateAfterOpen: boolean read FRecalculateAfterOpen write FRecalculateAfterOpen default false;
Published property RecalculateAfterFilter: boolean read FRecalculateAfterFilter write FRecalculateAfterFilter default false;
Published property RefreshAfterScroll: boolean read FRefreshAfterScroll write FRefreshAfterScroll default false;

Description

Methods

Public function FooterRect: TRect;

return rectangle of footer row

Public function FooterCellRect(ACol: integer): TRect;

return rectangle of one cell in footer row

Public function IsFooterDefined(Field: TField): boolean;

indicate if footer text is defined for the field

Public function GetFooterText(Field: TField): string;

return footer text for the field

Public procedure Refresh;

redraw footer content (redraw only - not recalculate)

Properties

Published property FooterVisible: boolean read FFooterVisible write SetFooterVisible default false;

activate footer row

Published property FooterHeight: integer read FFooterHeight write SetFooterHeight default 0;

define specific height of footer row, 0 means current data row height

Published property ParentFont: boolean read FParentFont write SetParentFont default true;

define using of parent font instead of defined font

Published property Font: TFont read FFont write SetFont stored IsFontStored;

define font for text in footer row

Published property BoldText: boolean read FBoldText write SetBoldText default false;

define that footer use bold text although parent font is used

Published property Color: TColor read FColor write SetColor default clNone;

define background color of footer

Published property ShowCellLines: boolean read FShowCellLines write SetShowCellLines default true;

define showing of cells frame

Published property CellLinesColor: TColor read FCellLinesColor write SetCellLinesColor default clNone;

define color of cell lines

Published property FixedColText: string read FFixedColText write SetFixedColText;

define footer text in fixed column

Published property SimpleText: string read FSimpleText write SetSimpleText;

define footer simple text shown in the footer row (besides to text in the cells)

Published property SimpleTextAlign: TAlignment read FSimpleTextAlign write SetSimpleTextAlign default taLeftJustify;

define alignment of simple text in teh footer row

Published property FieldFooterDefs: TStrings read FFieldFooterDefs write SetFieldFooterDefs;

define content of footer for each field in following format: FieldName1=footertext;param FieldName2=footertext;param where footertext can contain tags for calculated values %SUM, %MIN, %MAX, %AVG, %COUNTVAL (see cSummaryTag_xxx for tag list)

Published property RecalculateAfterOpen: boolean read FRecalculateAfterOpen write FRecalculateAfterOpen default false;

activate automatic footer recalculation when dataset get active

Published property RecalculateAfterFilter: boolean read FRecalculateAfterFilter write FRecalculateAfterFilter default false;

activate automatic footer recalculation when grid filter changed

Published property RefreshAfterScroll: boolean read FRefreshAfterScroll write FRefreshAfterScroll default false;

activate automatic footer redraw after scroll (needed only if RecNo is used as summary content)


Generated by PasDoc 0.15.0.