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

TcxFormatController.AddListener(IcxFormatControllerListener) Method

Adds a new listener to a TcxFormatController instance.

#Declaration

Delphi
procedure AddListener(AListener: IcxFormatControllerListener); virtual;

#Parameters

Name Type
AListener IcxFormatControllerListener

#Remarks

Call this method to add a TcxFormatController listener (an object to receive controller notifications on date and currency format changes) to the notification list. Editors, which require “format changed” notifications (TcxCustomDateEdit and TcxCustomCurrencyEdit, for instance) add themselves as listeners to TcxFormatController. Thus, all editors subscribed to one format controller employ the same date and currency formats. The date and currency formats can be changed either by the TcxFormatController class due to an update in the system locale or by setting the format properties directly. To prevent a format controller from updating format properties because of changes to the system locale, set an application’s UpdateFormatSettings property to False.

Use the RemoveListener method to remove a specific listener from the notification list.

See Also