Performs actions needed to apply the specified auto-adjust layout policy.
Source position: comctrls.pp line 432
protected procedure TCustomTabControl.DoAutoAdjustLayout( |
const AMode: TLayoutAdjustmentPolicy; |
const AXProportion: Double; |
const AYProportion: Double |
); override; |
AMode |
|
Layout adjustment policy applied in the method. |
AXProportion |
|
Horizontal scaling factor for a layout adjustment policy. |
AYProportion |
|
Vertical scaling factor for a layout adjustment policy. |
DoAutoAdjustLayout is an overridden method in TCustomTabControl used to apply the specified auto-adjustment layout policy to the tabbed control. It calls the inherited method on entry to adjust the size, position, and alignment for the control including border spacing.
DoAutoAdjustLayout ensures that the width and height for the tabs and their assigned images are updated when needed. The image list in the widgetset class is updated (when assigned) to use the resolution needed for the PPI setting in Font. Values in TabWidth and TabHeight are adjusted (when assigned) using the scaling factors in AXProportion and AYProportion.
DoAutoAdjustLayout method is called from the DoAutoAdjustLayout method, and occurs when a scaled form (and its controls) are displayed in an application.
Modified in LCL version 3.0 to apply scaling factors to TabWidth and TabHeight.
|
Contains the images displayed on the tabs for the control. |
|
|
Applies layout changes using the specified policy and scaling proportions to the control. |
|
|
Indicates the policy for the LCL to execute automatic adjustments in the form layout. |
CT Web help |
CodeTyphon Studio |