Skip to main content

TcxDialogsMetricsStore Class

The TcxDialogsMetricsStore implements storage for dialog settings.

Declaration

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:

// ...
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