Skip to main content
A newer version of this page is available.

Resource Strings

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, please 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 Express Products. Use the links below to get information on resource strings available for specific products. These sections provide resource string identifiers (required by cxSetResourceString) and default values:

ExpressDataController

ExpressEditors and Filter Controls

Example

The following code replaces the caption of the “Add Group” menu item in the filter control with its German equivalent:

cxSetResourceString(@cxSFilterAddGroup, 'Gruppe hinzufü&gen');