With this file we can add resources to our application (windows, controls, graphics, strings, etc.) When "SymbosMake" compile a RC archive, it generates a "resources.h" file. We can use this C include file for using during compilation time.
The way to include objects is:
<OBJECT_TYPE> <NAME> <VALUE>
<OBJECT_TYPE> <NAME> { <VALUES> }
We can find all this kind of objects:
ICON <Identifier> <String>
BITMAP <Identifier> <String>
Add a graphic file with Symbos format (.SGX)
DEFINE <Identifier> <Integer>
Add a precompiler label in the file "Resources.h"
STRING <Identifier> <String>
Add an ASCII string. <String> is a set of chars separated between " "
For example: STRING IDS_CADENA1 "This is a string"
DATA <Identifier>
{
BYTE = <Integer> | WORD = <Integer> | LONG = <Integer> | POINTER = <Identifier>
[, BYTE = <Integer> | WORD = <Integer> | LONG = <Integer> | POINTER = <Identifier> [, ...] ]
}
Add an array of data. This let you to add integer numbers of 1 bytes, 2 bytes (WORD, POINTER) and 4 bytes (LONG)
WINDOW <Identifier>
{
[STATUS_CLOSED, ]
[STATUS_NORMAL, ]
[STATUS_MAXIMIZED, ]
[STATUS_MINIMIZED, ]
[SHOW_CENTERED, ]
[SHOW_ICON, ]
[IS_RESIZEABLE, ]
[SHOW_CLOSE, ]
[SHOW_TOOLBAR, ]
[SHOW_TITLE, ]
[SHOW_MENU, ]
[IS_X_ADJUSTED, ]
[IS_Y_ADJUSTED, ]
[NOT_SHOW_IN_TASKBAR, ]
[NOT_MOVEABLE, ]
[IS_SUPERWINDOW, ]
[X = <Integer>, ]
[Y = <Integer>, ]
[WIDTH = <Integer>, ]
[HEIGHT = <Integer>, ]
[OFF_X = <Integer>, ]
[OFF_Y = <Integer>, ]
[FULL_WIDTH = <Integer>, ]
[FULL_HEIGHT = <Integer>, ]
[MIN_WIDTH = <Integer>, ]
[MIN_HEIGHT = <Integer>, ]
[MAX_WIDTH = <Integer>, ]
[MAX_HEIGHT = <Integer>, ]
[ICON = <Pointer>, ]
[TITLE_STRING = <Identifier>, ]
[STATUS_STRING = <Identifier>, ]
[MENU_DATA_RECORD = <Identifier>, ]
[CONTROL_GROUP_DATA_RECORD = <Identifier>, ]
[CONTROL_GROUP_DATA_RECORD_TOOLBAR = <Identifier>, ]
[TOOLBAR_HEIGHT = <Integer>, ]
[SUPERWINDOW_ID = <Integer>, ]
}
CONTROL_GROUP_DATA_RECORD <Identifier>
{
[CONTROL_DATA_RECORD | AREA | TEXT | FRAME | FRAME_WITH_TITLE |
PROGRESS | TEXT_WITH_FONT | TEXT_WITH_CODES | GRAPHIC |
GRAPHIC_WITH_TEXT | GRAPHIC_EX | BUTTON | CHECK_BUTTON | RADIO_BUTTON |
HIDDEN_BUTTON | TAB | SLIDER | COLLECTION | TEXTLINE | TEXTBOX |
LIST_TITLE | LIST_CONTENT | LIST_DROPDOWN | LIST <Identifier>
{
[ID = <Integer>,]
[TYPE = <Integer>,]
[BANK = <Integer>,]
[PARAM = <Integer>,]
[PARAM_EX = <Identifier>,]
[X = <Integer>,]
[Y = <Integer>,]
[W = <Integer>,]
[H = <Integer>,]
}]
[CALCULATION_RULE_DATA_RECORD = <Identifier>, ]
[OBJ_RETURN = <Integer>, ]
[OBJ_ESCAPE = <Integer>, ]
[OBJ_FOCUS = <Integer>, ]
}
CALCULATION_RULE_DATA_RECORD <Identifier>
{
[X = <Integer>, ]
[X_MUL = <Integer>, ]
[X_DIV = <Integer>, ]
[Y = <Integer>, ]
[Y_MUL = <Integer>, ]
[Y_DIV = <Integer>, ]
[W = <Integer>, ]
[W_MUL = <Integer>, ]
[W_DIV = <Integer>, ]
[H = <Integer>, ]
[H_MUL = <Integer>, ]
[H_DIV = <Integer>, ]
}
MENU_DATA_RECORD <Identifier>
{
[ITEM <Identifier>
{
[SUBMENU = <Identifier>,]
[ID = <Identifier>,]
[TEXT = <Identifier>,]
[IS_ACTIVED,]
[IS_CHECKED,]
[IS_SEPARATOR,]
}]
}