Class TrDBColorLinkedComp

Unit

Declaration

type TrDBColorLinkedComp = class(TComponent)

Description

non visual component which set font and background color of db avare components according rDBGrid colors for selected record and field

Hierarchy

  • TComponent
  • TrDBColorLinkedComp

Overview

Methods

Public procedure ColorLinkedComps;

Properties

Published property rDBGrid: TrDBGrid read FGrid write SetGrid;
Published property DataSource: TDataSource read GetDataSource write SetDataSource stored IsPropSaveSet;
Published property PropSaveFile: TPropSaveFile read FPropSaveFile write SetPropSaveFile;
Published property PropSaveKey: string read FPropSaveKey write FPropSaveKey stored IsPropSaveSet;
Published property LinkedComps: TStrings read FLinkedComps write SetLinkedComps;
Published property LinkAllComps: boolean read FLinkAllComps write SetLinkAllComps default true;
Published property LoadAllCompsNow: boolean read FLoadAllCompsNow write SetLoadAllCompsNow default false;
Published property LinkDelayed: boolean read FLinkDelayed write FLinkDelayed default true;
Published property LinkDelay: cardinal read FLinkDelay write FLinkDelay default 250;
Published property KeepFontSize: boolean read FKeepFontSize write FKeepFontSize default true;
Published property KeepBackground: boolean read FKeepBackground write FKeepBackground default false;
Published property Enabled: boolean read FEnabled write SetEnabled default true;
Published property OnIsSupportedComponent: TIsSupportedComponent read FIsSupportedComponent write FIsSupportedComponent;
Published property OnReadComponentProps: TComponentPropsEvent read FReadComponentProps write FReadComponentProps;
Published property OnSetComponentProps: TComponentPropsEvent read FSetComponentProps write FSetComponentProps;

Description

Methods

Public procedure ColorLinkedComps;

refresh colors of all linked components, called automatically when dataset scrolled or changed

Properties

Published property rDBGrid: TrDBGrid read FGrid write SetGrid;

linked rDBGrid which is used as source of colors

Published property DataSource: TDataSource read GetDataSource write SetDataSource stored IsPropSaveSet;

linked Datasource which is used as source of data in case that rDBGrid is not assigned or created

Published property PropSaveFile: TPropSaveFile read FPropSaveFile write SetPropSaveFile;

linked PropSaveFile which is used as source of settings in case that rDBGrid is not assigned or created

Published property PropSaveKey: string read FPropSaveKey write FPropSaveKey stored IsPropSaveSet;

define Key used by linked rDBGrid in case that rDBGrid is not assigned or created

Published property LinkedComps: TStrings read FLinkedComps write SetLinkedComps;

list of linked component names, set automatically if LinkAllComps is TRUE

Published property LinkAllComps: boolean read FLinkAllComps write SetLinkAllComps default true;

define whether all supported components is added automatically

Published property LoadAllCompsNow: boolean read FLoadAllCompsNow write SetLoadAllCompsNow default false;

used only for loading of list of all supported components in design time

Published property LinkDelayed: boolean read FLinkDelayed write FLinkDelayed default true;

define whether update of linked components after loading is delayed to avoid flickering

Published property LinkDelay: cardinal read FLinkDelay write FLinkDelay default 250;

define delay in ms for first update after loading

Published property KeepFontSize: boolean read FKeepFontSize write FKeepFontSize default true;

define whether font size and name of linked components is kept independently of DBGrid font

Published property KeepBackground: boolean read FKeepBackground write FKeepBackground default false;

define whether background color of linked components is kept independently of DBGrid color

Published property Enabled: boolean read FEnabled write SetEnabled default true;

define whether function is Enabled

Published property OnIsSupportedComponent: TIsSupportedComponent read FIsSupportedComponent write FIsSupportedComponent;

event can be used to define supported component types

Published property OnReadComponentProps: TComponentPropsEvent read FReadComponentProps write FReadComponentProps;

event can be used to read Field, Color and Font of any db avare component

Published property OnSetComponentProps: TComponentPropsEvent read FSetComponentProps write FSetComponentProps;

event can be used to set Color and Font of any db avare component


Generated by PasDoc 0.15.0.