cxGetResourceString(TcxResourceStringID) Method
Retrives a resource string value for the specified resource identifier.
Declaration
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
The following code example specifies a new value for the cxSDatePopupClear
resource string in the German language:
Note
To easily localize applications that use standard, DevExpress or other third-party controls to any language supported by Windows, use the TcxLocalizer component.