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 Class

The TcxDialogsMetricsStore implements storage for dialog settings.

#Declaration

Delphi
TcxDialogsMetricsStore = class(
    TObject
)

#Remarks

The TcxDialogsMetricsStore is used to store information on the dialog (dialog layout built-in settings and custom information) during the application session.

By default, the TcxDialogsMetricsStore stores dialog built-in layout settings. To store custom settings, the dialog class needs to implement the IcxDialogMetricsInfoData interface.

The TcxDialogsMetricsStore can be instantiated using the cxDialogsMetricsStore routine.

The following example demonstrates how to use the TcxDialogsMetricsStore, in order to provide the same dialog settings for different dialog sessions:

Delphi
// ...
uses
  // ...
  cxClasses;
  TDialogForm = class(TForm)
  public
    function ShowModal: Integer; override;
  end;
// ...
function TDialogForm.ShowModal: Integer;
begin
  cxDialogsMetricsStore.InitDialog(Self);
  Result := inherited ShowModal;
  cxDialogsMetricsStore.StoreMetrics(Self);
end;

#Inheritance

TObject
TcxDialogsMetricsStore
See Also