Single-Line Statements
The general form for all single-line statements is:
──resourcetype──nameid──┬────────────┬─────
└─loadoption─┘
──┬───────────┬──filename──
└─memoption─┘
resourcetype (USHORT)
One of the following
keywords, specifying the type of resource to be loaded:
Keyword
BITMAP
A bit-map resource is a custom bit map that an application
intends to use in its screen display or as an item in a menu.
DEFAULTICON
This keyword installs the filename.ico icon definition
under the ICON EA of the program file.
Example:
DEFAULTICON <filename.ico>
DLGINCLUDE
This statement
tells the dialog editor which file to use as an include file for the dialogs
in the resource file. The nameid is not applicable.
FONT
A font resource is a file containing a font.
ICON
An icon resource is a bit map defining the shape
of the icon to be used for a given application.
POINTER
A pointer resource is a bit map defining the shape
of the pointing device pointer on the display screen.
nameid
(USHORT)
is either a unique name or an integer
number identifying the resource. For a FONT resource, the nameid must
be a number; it cannot be a name.
loadoption (LOADOPTION)
memoption
(MEMOPTION)
filename
(PCH)
An ASCII string specifying the OS/2*
name of the file containing the resource. A full path must be given if the
file is not in the current working directory.
Example
POINTER "pointer" point.curPOINTER "discardable pointer" DISCARDABLE point.cur
POINTER 10 custom.cur
ICON "desk" desk.ico
ICON "discardable desk" DISCARDABLE desk.ico
ICON 11 custom.ico
BITMAP "disk" disk.bmp
BITMAP "discardable disk" DISCARDABLE disk.bmp
BITMAP 12 custom.bmp
FONT 5 CMROMAN.FNT
[Back: Resource Script File Specification]
[Next: User-Defined Resources]