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

IcxFormatControllerListener Interface

An interface for the controls that require notifications of currency and date format changes.

#Declaration

Delphi
IcxFormatControllerListener = interface(IInterface)

#Remarks

Editors that should receive notifications of currency and date format changes must implement the IcxFormatControllerListener interface. The TcxFormatController object maintains the currency and date format settings common to all editors registered within it. Use the TcxFormatController.AddListener method to register a control within the format controller.

Editors such as TcxCustomDateEdit and TcxCustomCurrencyEdit implement a single FormatChanged method of the IcxFormatControllerListener interface. As they need to be notified of currency and date format changes, they add themselves as listeners to the global instance of the TcxFormatController class. The cxFormatController function allows you to access this object. All listeners read the currency and date formats from the TcxFormatController object and, whenever changes are made, editors immediately receive notifications via the FormatChanged method and update their appropriate properties.

#Inheritance

IInterface
IcxFormatControllerListener
See Also