Skip to main content

Resource Strings

  • 2 minutes to read

Developer Express offers you a simple and complete mechanism of localizing the resource strings, which is common to all Developer Express VCL products. You can use the TcxLocalizer component designed to simplify localization tasks, or manually replace the default value of specific resource strings at runtime via the cxSetResourceString procedure calls. To learn more about the TcxLocalizer component, refer to the How to: Localize an Application help topic.

The cxSetResourceString procedure is used with the cxGetResourceString function used by Developer Express controls. When the controls need a specific string to display, they call the cxGetResourceString function, which returns either the custom string or the default string (if the resource string was not replaced).

Resource strings are declared in separate files for individual Developer Express VCL products. Use the links below to obtain information on resource strings available for specific products. These topics provide resource string identifiers (required by cxSetResourceString) and default values:

Example

A date editor displays a Clear button in its dropdown. The button’s string is addressed by the cxSDatePopupClear identifier. The following code substitutes the caption of the button with its German equivalent:

cxSetResourceString(@cxSDatePopupClear, 'Löschen');

This code changes the caption of the Clear button for all date editors in the current application.