Numbers are integers that represent coordinates, dimensions, styles, and other numeric data. You can specify numbers in decimal or in hexadecimal notation:
The following example shows several numbers represented in decimal and hexadecimal notation:
┌──────────────────────────────┬──────────────────────────────┐│Decimal │Hexadecimal │ ├──────────────────────────────┼──────────────────────────────┤ │1 │0x1 │ ├──────────────────────────────┼──────────────────────────────┤ │10 │0xA │ ├──────────────────────────────┼──────────────────────────────┤ │255 │0xFF │ ├──────────────────────────────┼──────────────────────────────┤ │-1 │ │ ├──────────────────────────────┼──────────────────────────────┤ │65535 │0xFFFF │ └──────────────────────────────┴──────────────────────────────┘
Statements that create controls in dialog windows and menu items require that you specify an identifier for each control or menu item. Statements that create controls also require you to specify coordinates and dimensions. You specify identifiers, coordinates and dimensions using integers or simple expressions that evaluate to integers in the appropriate range. This enables you to specify identifiers, dimensions, and coordinates that are relative to those of the corresponding dialog window or menu. A resource identifier encoded as an expression must resolve to an unsigned integer, not a string.
The ranges specific to number types are listed in the following table.
┌────────────────────┬────────────────────────────────────────┬──────────────────────────────┬────────────────────┐ │ │Signed Range │Unsigned Range │Strings │ ├────────────────────┼────────────────────────────────────────┼──────────────────────────────┼────────────────────┤ │Identifiers │-32768 through 32767 │1 through 65535 │Yes │ ├────────────────────┼────────────────────────────────────────┼──────────────────────────────┼────────────────────┤ │Coordinates │-32768 through 32767 │0 through 65535 │No │ ├────────────────────┼────────────────────────────────────────┼──────────────────────────────┼────────────────────┤ │Dimensions │Not applicable │0 through 65535 │No │ └────────────────────┴────────────────────────────────────────┴──────────────────────────────┴────────────────────┘