Class TAutoResizeChild
Unit
rImprovedComps
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
Properties
 |
property AutoResizeActive: Boolean read FAutoResizeActive write SetAutoResizeActive default false; |
 |
property AutoResizeDelay: integer read FAutoResizeDelay write FAutoResizeDelay default 100; |
 |
property AutoSetTabOrder: Boolean read FAutoSetTabOrder write FAutoSetTabOrder default true; |
 |
property ColSpacing: integer read FColSpacing write SetColSpacing default 4; |
 |
property RowSpacing: integer read FRowSpacing write SetRowSpacing default 4; |
 |
property BorderSpacing: integer read FBorderSpacing write SetBorderSpacing default 8; |
 |
property BorderLeftAddSpacing: integer read FBorderLeftAddSpacing write SetBorderLeftAddSpacing default 0; |
 |
property ColWidthsPercent: TStrings read FColWidthsPercent write SetColWidthsPercent; |
 |
property RowHeightsPercent: TStrings read FRowHeightsPercent write SetRowHeightsPercent; |
 |
property ChildCompsPos: TStrings read FChildCompsPos write SetChildCompsPos; |
Description
Methods
 |
function GetColWidthPercent(ColIndex: integer): integer; |
get percentage width of selected column
|
 |
function GetRowHeightPercent(RowIndex: integer): integer; |
get percentage height of selected row
|
 |
procedure UpdateChildComp; |
refresh possition of child components
|
Properties
 |
property AutoResizeActive: Boolean read FAutoResizeActive write SetAutoResizeActive default false; |
switch on/off autoresize function
|
 |
property AutoResizeDelay: integer read FAutoResizeDelay write FAutoResizeDelay default 100; |
define delay for autoresize after Groupbox Resize
|
 |
property AutoSetTabOrder: Boolean read FAutoSetTabOrder write FAutoSetTabOrder default true; |
define whether child components tab order is set according order of components in ChildCompsPos
|
 |
property ColSpacing: integer read FColSpacing write SetColSpacing default 4; |
define space between columns
|
 |
property RowSpacing: integer read FRowSpacing write SetRowSpacing default 4; |
define space between rows
|
 |
property BorderSpacing: integer read FBorderSpacing write SetBorderSpacing default 8; |
define space between border and first/last column and rows
|
 |
property BorderLeftAddSpacing: integer read FBorderLeftAddSpacing write SetBorderLeftAddSpacing default 0; |
define additional space between border and first column
|
 |
property ColWidthsPercent: TStrings read FColWidthsPercent write SetColWidthsPercent; |
define list of percentage width for each column of child rGroupBox
|
 |
property RowHeightsPercent: TStrings read FRowHeightsPercent write SetRowHeightsPercent; |
define list of percentage height for each row of child rGroupBox
|
 |
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.
|