ASSOCTABLE Statement
The ASSOCTABLE statement defines the extended attributes (EA) for an application.
The ASSOCTABLE statement has the form:
────ASSOCTABLE──assoctableid────────────────
────BEGIN───────────────────────────────────
┌───────────────────────────────────────┐
│
───assocname,extensions─┬──────┬─,──┬────┬┴─
└─flags┘ └icon┘
────END───
The source for the ASSOCTABLE description is contained in the resource file
for a particular project:
ASSOCTABLE assoctableid
BEGIN
"association name", "extension", flags, icon filename
"association name", "extension", flags, icon filename
...
END
association name
Program recognizes data files of
this EA TYPE. This is the same name found in the TYPE field of data files.
assoctableid
A name or number
used to identify the assoctable resource.
extension
3 letter file extension that is used to identify
files of this type if they have no EA TYPE entry. (This may be empty.)
flags
EAF_DEFAULTOWNER
The default application
for the file.
EAF_UNCHANGEABLE
This
flag is set if the entry in the ASSOCTABLE is not to be edited.
EAF_REUSEICON
This flag is specified if a previously defined
icon in the ASSOCTABLE is to be reused. Entries with this flag set have
no icon data defined. The icon used for this entry is the icon used for
the previous entry (see below). Note that EAF_* flags may be ORed together
when specified in the ASSOCTABLE.
icon
filename
Filename of the icon used to represent
this file type. (This may be empty.)
Example
ASSOCTABLE 3000BEGIN
"Product XYZ Spreadsheet", "xys", EAF_DEFAULTOWNER, xyzspr.ico
"Product XYZ Chart", "xyc", EAF_DEFAULTOWNER | EAF_REUSEICON
END
[Back: ACCELTABLE Statement]
[Next: Dialog and Window Template Statements]