TCustomColorBox.DoAutoAdjustLayout procedure
Performs actions needed to auto-adjust the control using the specified layout policy.
Declaration
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
const AXProportion: Double;
const AYProportion: Double); overrideArguments
AMode | Layout adjustment policy applied in the method. |
AXProportion | Horizontal scaling factor for the layout policy. |
AYProportion | Vertical scaling factor for the layout policy. |
Description
Called when an auto adjust policy is applied for the control. DoAutoAdjustLayout ensures that the item height for the control is scaled using the factor in AYProportion when AMode contains the lapAutoAdjustWithoutHorizontalScrolling or lapAutoAdjustForDPI layout adjustment policy values.
In TCustomColorBox, it ensures that ColorRectWidth is scaled when needed.
DoAutoAdjustLayout is called from the AutoAdjustLayout method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
