Functions providing a way to access the compiled GRC resources of the AddOn. Used to define and read the localized strings and other resources in a platform-independent manner.
More...
Functions providing a way to access the compiled GRC resources of the AddOn. Used to define and read the localized strings and other resources in a platform-independent manner.
◆ ACAPI_GetOwnResModule()
GSResModule ACAPI_GetOwnResModule |
( |
void |
| ) |
|
Returns the add-on's own resource module identifier for loading resources.
- Returns
- NoError - The identifier of the add-on's resource file.
- Example
bool result;
GSResModule ACAPI_GetOwnResModule(void)
Returns the add-on's own resource module identifier for loading resources.
◆ ACAPI_Resource_GetFixStr()
bool ACAPI_Resource_GetFixStr |
( |
char * |
str, |
|
|
short |
resID, |
|
|
short |
index, |
|
|
GSResModule |
resModule = ACAPI_GetOwnResModule() |
|
) |
| |
Reads a string from an 'STRf ' string list resource.
- Parameters
-
str | The pointer of the string. |
resID | The resource ID of the ' STRf ' resource in the GRC file. |
index | The index of the string in the resource. |
resModule | [in] The resource module to load the resource from. The default value is the add-on's own resource module. |
- Returns
- true - The string was retrieved successfully.
- false - The string wasn't retrieved.
- Example
.
bool ACAPI_Resource_GetLocStr(char *str, short resID, short index, GSResModule resModule=ACAPI_GetOwnResModule())
Reads a string from an 'STR# ' string list resource.
◆ ACAPI_Resource_GetLocStr()
bool ACAPI_Resource_GetLocStr |
( |
char * |
str, |
|
|
short |
resID, |
|
|
short |
index, |
|
|
GSResModule |
resModule = ACAPI_GetOwnResModule() |
|
) |
| |
Reads a string from an 'STR# ' string list resource.
- Parameters
-
str | [out] The pointer of the string. |
resID | [in] The resource ID of the ' STR# ' resource in the GRC file. |
index | [in] The index of the string in the resource. |
resModule | [in] The resource module to load the resource from. The default value is the add-on's own resource module. |
- Returns
- true - The string was retrieved successfully.
- false - The string wasn't retrieved.
- Example
'STR#' 32510 "Fix strings" {
"Saving the file in abc format"
"You have canceled the operation!"
}
char own_res_str[256];
bool succ;
if (succ) {
}
void ACAPI_WriteReport(const GS::UniString &format, bool withDial,...)
Writes a report string into the Report Windowot into a custom alert window.
◆ ACAPI_Resource_GetLocUStr()
bool ACAPI_Resource_GetLocUStr |
( |
GS::uchar_t * |
str, |
|
|
short |
resID, |
|
|
short |
index, |
|
|
GSResModule |
resModule = ACAPI_GetOwnResModule() |
|
) |
| |
Reads a unicode string from an 'STR# ' string list resource.
- Parameters
-
str | [out] The pointer of the string. |
resID | [in] The resource ID of the ' STR# ' resource in the GRC file. |
index | [in] The index of the string in the resource. |
resModule | [in] The resource module to load the resource from. The default value is the add-on's own resource module. |
- Returns
- true - The string was retrieved successfully.
- false - The string wasn't retrieved.
- Example
'STR#' 32530 "Localizable strings" {
"Saving the file in abc format"
"MISSING"
}
UC257HeadData header;
bool succ;
if (succ) {
...
}
bool ACAPI_Resource_GetLocUStr(GS::uchar_t *str, short resID, short index, GSResModule resModule=ACAPI_GetOwnResModule())
Reads a unicode string from an 'STR# ' string list resource.