Class TAutoResizeChild

Unit

Declaration

type TAutoResizeChild = class(TPersistent)

Description

subcomponent for autosize functionality of child components used by TrGroupBox; 1/ TrGroupBox child controls are resized according AutoResizePos properties of child control; 2/ other child controls are resized according AutoResizeChild.ChildCompsPos property

Hierarchy

  • TPersistent
  • TAutoResizeChild

Overview

Methods

Public function GetColWidthPercent(ColIndex: integer): integer;
Public function GetRowHeightPercent(RowIndex: integer): integer;
Public procedure UpdateChildComp;

Properties

Published property AutoResizeActive: Boolean read FAutoResizeActive write SetAutoResizeActive default false;
Published property AutoResizeDelay: integer read FAutoResizeDelay write FAutoResizeDelay default 100;
Published property AutoSetTabOrder: Boolean read FAutoSetTabOrder write FAutoSetTabOrder default true;
Published property ColSpacing: integer read FColSpacing write SetColSpacing default 4;
Published property RowSpacing: integer read FRowSpacing write SetRowSpacing default 4;
Published property BorderSpacing: integer read FBorderSpacing write SetBorderSpacing default 8;
Published property BorderLeftAddSpacing: integer read FBorderLeftAddSpacing write SetBorderLeftAddSpacing default 0;
Published property ColWidthsPercent: TStrings read FColWidthsPercent write SetColWidthsPercent;
Published property RowHeightsPercent: TStrings read FRowHeightsPercent write SetRowHeightsPercent;
Published property ChildCompsPos: TStrings read FChildCompsPos write SetChildCompsPos;

Description

Methods

Public function GetColWidthPercent(ColIndex: integer): integer;

get percentage width of selected column

Public function GetRowHeightPercent(RowIndex: integer): integer;

get percentage height of selected row

Public procedure UpdateChildComp;

refresh possition of child components

Properties

Published property AutoResizeActive: Boolean read FAutoResizeActive write SetAutoResizeActive default false;

switch on/off autoresize function

Published property AutoResizeDelay: integer read FAutoResizeDelay write FAutoResizeDelay default 100;

define delay for autoresize after Groupbox Resize

Published property AutoSetTabOrder: Boolean read FAutoSetTabOrder write FAutoSetTabOrder default true;

define whether child components tab order is set according order of components in ChildCompsPos

Published property ColSpacing: integer read FColSpacing write SetColSpacing default 4;

define space between columns

Published property RowSpacing: integer read FRowSpacing write SetRowSpacing default 4;

define space between rows

Published property BorderSpacing: integer read FBorderSpacing write SetBorderSpacing default 8;

define space between border and first/last column and rows

Published property BorderLeftAddSpacing: integer read FBorderLeftAddSpacing write SetBorderLeftAddSpacing default 0;

define additional space between border and first column

Published property ColWidthsPercent: TStrings read FColWidthsPercent write SetColWidthsPercent;

define list of percentage width for each column of child rGroupBox

Published property RowHeightsPercent: TStrings read FRowHeightsPercent write SetRowHeightsPercent;

define list of percentage height for each row of child rGroupBox

Published property ChildCompsPos: TStrings read FChildCompsPos write SetChildCompsPos;

define setting for each child component, use design time dialog to set in IDE; each line has following content: CompName=VerAlignStyle;ColIndex;ColCount;ReduceWidth;HorAlignStyle;ReduceHeight VerAlignStyle: 0 .. no auto alignment; C .. use column definition; CL .. keep original size and move to left border of column; CR .. keep original size and move to right border of column; L .. keep original size and move to left border of parent; R .. keep original size and move to right border of parent; E .. keep left possition and expand to right border of parent; HorAlignStyle: 0 .. no auto alignment; E .. keep top possition and expand to bottom border of parent; B .. keep original size and move to bottom border of parent if AlignWithMargins of child control is set to true, calculated size is modified according Child.Margins values


Generated by PasDoc 0.15.0.