Class TrStringGridEdColumn

Unit

Declaration

type TrStringGridEdColumn = class(TCollectionItem)

Description

collection item containing all column properties

Hierarchy

  • TCollectionItem
  • TrStringGridEdColumn

Overview

Methods

Public procedure Assign(Source: TPersistent); override;
Public procedure RestoreDefaults;
Public function CheckListContainValue(Text, Value: string): boolean;
Public function CheckListAddValue(Text, Value: string): string;
Public function CheckListRemoveValue(Text, Value: string): string;
Public function CheckListCleanUpText(Text: string; SortAsPickList: boolean = false): string;
Public function CheckListCleanUpRow(ARow: longint; SortAsPickList: boolean = false): string;

Properties

Published property ButtonStyle: TrStringGridEdEditStyle read FButtonStyle write SetButtonStyle default sgbNone;
Published property DataType: TrStringGridEdDataType read FDataType write FDataType default sgdText;
Published property DataImageList: TImageList read FDataImageList write SetDataImageList;
Published property NumFormat: string read FNumFormat write FNumFormat;
Published property MinValue: double read FMinValue write FMinValue;
Published property MaxValue: double read FMaxValue write FMaxValue;
Published property InvalidDataAction: TrStringGridEdInvalidDataAction read FInvalidDataAction write FInvalidDataAction default sgaHighlight;
Published property InvalidDataColor: TColor read FInvalidDataColor write FInvalidDataColor default clRed;
Published property OutOfLimitDataColor: TColor read FOutOfLimitDataColor write FOutOfLimitDataColor default clBlack;
Published property DropDownRows: integer read FDropDownRows write FDropDownRows default 12;
Published property DropDownListCanDelete: boolean read FDropDownListCanDelete write FDropDownListCanDelete default false;
Published property CheckBoxTrueValue: string read FCheckBoxTrueValue write FCheckBoxTrueValue stored CheckBoxTrueValueStored;
Published property CheckBoxFalseValue: string read FCheckBoxFalseValue write FCheckBoxFalseValue stored CheckBoxFalseValueStored;
Published property CheckBoxDblClick: boolean read FCheckBoxDblClick write FCheckBoxDblClick default false;
Published property CheckListSeparator: string read FCheckListSeparator write FCheckListSeparator stored CheckListSeparatorStored;
Published property CheckListCaseSensitive: boolean read FCheckListCaseSensitive write FCheckListCaseSensitive default false;
Published property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;
Published property CheckboxAlignment: TAlignment read FCheckBoxAlignment write SetCheckBoxAlignment default taCenter;
Published property AutoAlignment: boolean read FAutoAlignment write FAutoAlignment default false;
Published property Color: TColor read FColor write SetColor default clWindow;
Published property Font: TFont read FFont write SetFont stored IsFontStored;
Published property CustomDraw: boolean read FCustomDraw write SetCustomDraw default false;
Published property ParentFont: boolean read FParentFont write SetParentFont default true;
Published property PickList: TStringList read FPickList write SetPickList;
Published property ReadOnly: boolean read FReadOnly write SetReadOnly default false;
Published property Visible: boolean read FVisible write SetVisible default true;
Published property TitleCaption: string read FTitleCaption write SetTitleCaption;
Published property TitleFont: TFont read FTitleFont write SetTitleFont stored IsTitleFontStored;
Published property TitleParentFont: boolean read FTitleParentFont write SetTitleParentFont default true;
Published property TitleColor: TColor read FTitleColor write SetTitleColor default clNone;
Published property TitleAlignment: TAlignment read FTitleAlignment write SetTitleAlignment default taLeftJustify;
Published property WordWrap: boolean read FWordWrap write SetWordWrap default false;
Published property TitleWordWrap: boolean read FTitleWordWrap write SetTitleWordWrap default false;
Published property DataBar: TrDataBar read FDataBar write FDataBar;
Published property StatusBar: TrStatusBar read FStatusBar write FStatusBar;
Published property Width: integer read GetWidth write SetWidth default 64;
Published property FieldName: string read FFieldName write FFieldName;
Published property ColumnGroup: integer read FColumnGroup write FColumnGroup default 0;
Published property OnDropDownDrawItemEvent: TDrawItemEvent read FDropDownDrawItemEvent write FDropDownDrawItemEvent;
Published property OnDropDownMeasureItemEvent: TMeasureItemEvent read FDropDownMeasureItemEvent write FDropDownMeasureItemEvent;
Published property OnDropDownGetSize: TCanResizeEvent read FDropDownGetSize write FDropDownGetSize;

Description

Methods

Public procedure Assign(Source: TPersistent); override;
 
Public procedure RestoreDefaults;

restore default properties column

Public function CheckListContainValue(Text, Value: string): boolean;

check if checklist text contain value

Public function CheckListAddValue(Text, Value: string): string;

add value to checklist text

Public function CheckListRemoveValue(Text, Value: string): string;

remove value from checklist text

Public function CheckListCleanUpText(Text: string; SortAsPickList: boolean = false): string;

clean up checklist text - remove values outside of picklist and sort by picklist

Public function CheckListCleanUpRow(ARow: longint; SortAsPickList: boolean = false): string;

clean up checklist text from the row and update cell text

Properties

Published property ButtonStyle: TrStringGridEdEditStyle read FButtonStyle write SetButtonStyle default sgbNone;

define edit style of column

Published property DataType: TrStringGridEdDataType read FDataType write FDataType default sgdText;

define type of data in column - text, int, float, datetime

Published property DataImageList: TImageList read FDataImageList write SetDataImageList;

link to ImageList for images in data cells

Published property NumFormat: string read FNumFormat write FNumFormat;

define numeric format for data in column

Published property MinValue: double read FMinValue write FMinValue;

define min limit for numeric data, DataType must be int or number

Published property MaxValue: double read FMaxValue write FMaxValue;

define max limit for numeric data, DataType must be int or number

Published property InvalidDataAction: TrStringGridEdInvalidDataAction read FInvalidDataAction write FInvalidDataAction default sgaHighlight;

define action if invalid data is entered

Published property InvalidDataColor: TColor read FInvalidDataColor write FInvalidDataColor default clRed;

define font color for invalid data

Published property OutOfLimitDataColor: TColor read FOutOfLimitDataColor write FOutOfLimitDataColor default clBlack;

define font color for data out of min max limit

Published property DropDownRows: integer read FDropDownRows write FDropDownRows default 12;

define number of items in dropdown listbox

Published property DropDownListCanDelete: boolean read FDropDownListCanDelete write FDropDownListCanDelete default false;

define whether cell value can be deleted for DropDownList + DropDownColor style

Published property CheckBoxTrueValue: string read FCheckBoxTrueValue write FCheckBoxTrueValue stored CheckBoxTrueValueStored;

define saved value if checkbox is checked

Published property CheckBoxFalseValue: string read FCheckBoxFalseValue write FCheckBoxFalseValue stored CheckBoxFalseValueStored;

define saved value if checkbox is unchecked

Published property CheckBoxDblClick: boolean read FCheckBoxDblClick write FCheckBoxDblClick default false;

define whether double click must be used for changing of checkbox

Published property CheckListSeparator: string read FCheckListSeparator write FCheckListSeparator stored CheckListSeparatorStored;

define separators between values from checklist

Published property CheckListCaseSensitive: boolean read FCheckListCaseSensitive write FCheckListCaseSensitive default false;

define whether values in check list is case sensitive

Published property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;

define alignment of data in column

Published property CheckboxAlignment: TAlignment read FCheckBoxAlignment write SetCheckBoxAlignment default taCenter;

define alignment of data in column

Published property AutoAlignment: boolean read FAutoAlignment write FAutoAlignment default false;

define alignment according datatype of each cell

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

define background color for column

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

define font for all column except title

Published property CustomDraw: boolean read FCustomDraw write SetCustomDraw default false;

define whether column is drawn only in OnDrawCell

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

define usage of parent font for column

Published property PickList: TStringList read FPickList write SetPickList;

define list of values for dropdown listbox

Published property ReadOnly: boolean read FReadOnly write SetReadOnly default false;

define that column cannot be modified

Published property Visible: boolean read FVisible write SetVisible default true;

define that column is visible or hidden (width=-1)

Published property TitleCaption: string read FTitleCaption write SetTitleCaption;

define caption of column

Published property TitleFont: TFont read FTitleFont write SetTitleFont stored IsTitleFontStored;

define title font of column

Published property TitleParentFont: boolean read FTitleParentFont write SetTitleParentFont default true;

define usage of parent font for column title

Published property TitleColor: TColor read FTitleColor write SetTitleColor default clNone;

define background color for column title

Published property TitleAlignment: TAlignment read FTitleAlignment write SetTitleAlignment default taLeftJustify;

define allignment of column title

Published property WordWrap: boolean read FWordWrap write SetWordWrap default false;

define whether long string should be wraped in column

Published property TitleWordWrap: boolean read FTitleWordWrap write SetTitleWordWrap default false;

define whether long string in title row should be wraped in column

Published property DataBar: TrDataBar read FDataBar write FDataBar;

define progress bar properties

Published property StatusBar: TrStatusBar read FStatusBar write FStatusBar;

define status bar properties

Published property Width: integer read GetWidth write SetWidth default 64;

define Width of column

Published property FieldName: string read FFieldName write FFieldName;

define FieldName for column in case of Database support, used in rStringGridEdDB

Published property ColumnGroup: integer read FColumnGroup write FColumnGroup default 0;

define any number for Column Grouping, used mainly for DB support but can be used for any other purpose

Published property OnDropDownDrawItemEvent: TDrawItemEvent read FDropDownDrawItemEvent write FDropDownDrawItemEvent;

define event for owner draw on dropdown listbox

Published property OnDropDownMeasureItemEvent: TMeasureItemEvent read FDropDownMeasureItemEvent write FDropDownMeasureItemEvent;

define event for item heights if owner draw on dropdown listbox is used

Published property OnDropDownGetSize: TCanResizeEvent read FDropDownGetSize write FDropDownGetSize;

define event for definning of dropdown listbox size


Generated by PasDoc 0.15.0.