Skip to main content

TdxCustomRibbonForm.AdjustLayoutForNonClientDrawing Property

Specifies if the form shifts its layout up by the non-client area’s height at runtime.

Declaration

property AdjustLayoutForNonClientDrawing: Boolean read; write; default True;

Property Value

Type Default Description
Boolean True

True if the form shifts its layout up by the non-client area’s height at runtime; otherwise, False.

Remarks

The form shifts its Ribbon control to the non-client area at runtime. If the AdjustLayoutForNonClientDrawing property is set to True, the form shifts all hosted controls up by the non-client area’s height and shrinks vertically by the same number of pixels to keep the designed layout unchanged.

Set the AdjustLayoutForNonClientDrawing property to False in the form’s OnCreate event handler to avoid the automatic layout adjustment:

procedure TMyForm.FormCreate(Sender: TObject);
begin
  AdjustLayoutForNonClientDrawing := False;
end;

The AdjustLayoutForNonClientDrawing property’s default value is True.

See Also