cxGetResourceString(TcxResourceStringID) Method
Retrieves a resource string value for the specified resource identifier.
Declaration
function cxGetResourceString(AResString: TcxResourceStringID): string;
Parameters
| Name | Type | Description |
|---|---|---|
| AResString | TcxResourceStringID | A pointer to the source resource string identifier. |
Returns
| Type | Description |
|---|---|
| string | The resource string value. |
Remarks
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.
To localize an application, you can call the cxSetResourceString procedure to substitute resource string values at runtime.
Code Example: Localize a Resource String
The following code example specifies a new value for the cxSDatePopupClear resource string in German:
uses
dxCore; // Declares the cxSetResourceString global procedure
// ...
cxSetResourceString(@cxSDatePopupClear, 'Löschen');
Note
To localize applications that use standard, DevExpress, or other third-party controls to any language supported by Windows, use the TcxLocalizer component.
See Also