Back to Devexpress

TdxCustomRibbonForm.AdjustLayoutForNonClientDrawing Property

vcl-dxribbonform-dot-tdxcustomribbonform.md

latest1.7 KB
Original Source

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

TypeDefaultDescription
BooleanTrue

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:

delphi
procedure TMyForm.FormCreate(Sender: TObject);
begin
  AdjustLayoutForNonClientDrawing := False;
end;
cpp
void __fastcall TMyForm::FormCreate(TObject *Sender)
{
  AdjustLayoutForNonClientDrawing = false;
}

The AdjustLayoutForNonClientDrawing property’s default value is True.

See Also

TdxCustomRibbonForm Class

TdxCustomRibbonForm Members

dxRibbonForm Unit