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

TcxDialogsMetricsStore.DefaultPosition Property

Specifies the dialog’s default position.

#Declaration

Delphi
property DefaultPosition: TPosition read; write; default poMainFormCenter;

#Property Value

Type Default
TPosition poMainFormCenter

#Remarks

The specified position is used for the dialog that doesn’t have stored dialog settings.

The default value of the DefaultPosition property is poMainFormCenter.

The following example demonstrates how to specify that the default position of the dialog is the center of the screen:

Delphi
// ...
uses
  // ...
  cxClasses;
initialization
  cxDialogsMetricsStore.DefaultPosition := poDesktopCenter;
See Also