Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomRibbonForm.AdjustLayoutForNonClientDrawing Property

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

#Declaration

Delphi
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