Class TRbwColumn

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TRbwColumn = class(TCustomRowOrColumn)

Description

TRbwColumn defines how the behavior of a column in a TRbwDataGrid.

Hierarchy

Overview

Fields

Private FAutoAdjustColWidths: boolean;
Private FAutoAdjustRowHeights: boolean;
Private FWordWrapCaptions: boolean;
Private FWordWrapCells: boolean;

Methods

Private procedure AdjustColWidths;
Private procedure SetAutoAdjustColWidths(const Value: boolean);
Private procedure SetWordWrapCaptions(const Value: boolean);
Private procedure SetAutoAdjustRowHeights(const Value: boolean);
Private procedure SetWordWrapCells(const Value: boolean);
Protected procedure CheckRange; override;
Protected function GetGrid: TCustomRBWDataGrid; override;
Protected procedure PickListChange(Sender: TObject); override;
Protected procedure SetGridCount(const Value: integer); override;
Protected procedure SetPickList(const Value: TStrings); override;
Protected function SelectedRowOrColumn: integer; override;
Public procedure Assign(Source: TPersistent); override;

Properties

Published property AutoAdjustColWidths: boolean read FAutoAdjustColWidths write SetAutoAdjustColWidths;
Published property AutoAdjustRowHeights: boolean read FAutoAdjustRowHeights write SetAutoAdjustRowHeights;
Published property WordWrapCaptions: boolean read FWordWrapCaptions write SetWordWrapCaptions;
Published property WordWrapCells: boolean read FWordWrapCells write SetWordWrapCells;

Description

Fields

Private FAutoAdjustColWidths: boolean;

FAutoAdjustColWidths: boolean;

See AutoAdjustColWidths

Private FAutoAdjustRowHeights: boolean;

FAutoAdjustRowHeights: boolean;

See AutoAdjustRowHeights

Private FWordWrapCaptions: boolean;

FWordWrapCaptions: boolean;

See WordWrapCaptions

Private FWordWrapCells: boolean;

FWordWrapCells: boolean;

See WordWrapCells

Methods

Private procedure AdjustColWidths;

AdjustColWidths calls TRbwDataGrid.AdjustColWidths.

Private procedure SetAutoAdjustColWidths(const Value: boolean);

See AutoAdjustColWidths

Private procedure SetWordWrapCaptions(const Value: boolean);

See WordWrapCaptions

Private procedure SetAutoAdjustRowHeights(const Value: boolean);

See AutoAdjustRowHeights

Private procedure SetWordWrapCells(const Value: boolean);

See WordWrapCells

Protected procedure CheckRange; override;

See CheckRange.

Protected function GetGrid: TCustomRBWDataGrid; override;

returns the TRbwDataGrid that owns the column.

Protected procedure PickListChange(Sender: TObject); override;

PickListChange causes the column width to be adjusted if the PickList is changed and AutoAdjustColWidths is true.

PickListChange is the event handler for PickList.OnChange.

Protected procedure SetGridCount(const Value: integer); override;

See TCustomRowOrColumn.SetGridCount.

Protected procedure SetPickList(const Value: TStrings); override;

See TCustomRowOrColumn.SetPickList.

Protected function SelectedRowOrColumn: integer; override;

See TCustomRowOrColumn.SelectedRowOrColumn.

Public procedure Assign(Source: TPersistent); override;

If Source is a TRbwColumn, Assign copies the values of the Source.

Properties

Published property AutoAdjustColWidths: boolean read FAutoAdjustColWidths write SetAutoAdjustColWidths;

If AutoAdjustColWidths is true, columns will enlarge if that is required to fully display the text in the column.

Published property AutoAdjustRowHeights: boolean read FAutoAdjustRowHeights write SetAutoAdjustRowHeights;

If AutoAdjustRowHeights is true, rows will enlarge if that is required to fully display the text in the rows.

Published property WordWrapCaptions: boolean read FWordWrapCaptions write SetWordWrapCaptions;

If WordWrapCaptions is true, the cells that are captions (Row <= FixedRows) or (Col <= FixedCols) will have their text wrapped if required to display it.

Published property WordWrapCells: boolean read FWordWrapCells write SetWordWrapCells;

If WordWrapCaptions is true, the cells that are ordinary cells (Row > FixedRows) and (Col > FixedCols) will have their text wrapped if required to display it.


Generated by PasDoc 0.10.0 on 2006-10-31 09:56:43