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

cxGetResourceString(TcxResourceStringID) Method

Retrieves a resource string value for the specified resource identifier.

#Declaration

Delphi
function cxGetResourceString(AResString: TcxResourceStringID): string;

#Parameters

Name Type Description
AResString TcxResourceStringID

The source resource string identifier.

#Returns

Type Description
string

The resource string value.

#Remarks

The cxGetResourceString function retrieves a resource string for the resource identifier passed as the ResString parameter.

String constants for DevExpress products are stored as resources. DevExpress controls call the cxGetResourceString function to retrieve strings for each UI element with a caption or label.

For the purpose of localization, you can change the resource strings depending on the language and the regional settings. To do so, call the cxSetResourceString procedure passing a resource identifier and the new value of the resource string as parameters. This procedure substitutes the value of the resource string during execution only.

#Code Example: Localize a Resource String

The following code example specifies a new value for the cxSDatePopupClear resource string in the German language:

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

Note

To easily localize applications that use standard, DevExpress, or other third-party controls to any language supported by Windows, use the TcxLocalizer component.

See Also