Class TAutoResizeChild

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAutoResizeChild = class(TPersistent)

Description

subcomponent for autosize functionality of child components; 1/ rGroupBox 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 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 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, each line has following content: CompName=VerAlignStyle;ColIndex;ColCount;ReduceWidth;HorAlignStyle;ReduceHeight

VerAlignStyle: 0 .. no auto alignment; C .. use column definition; E .. keep left possition and expand to right border of parent; L .. keep original size and move to left border of parent; R .. keep original size and move to right border of parent; CL .. keep original size and move to left border of column; CR .. keep original size and move to right border of column;

HorAlignStyle: 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.13.0 on 2016-02-19 08:14:10