| United States-English |
|
|
|
![]() |
Common Desktop Environment: Advanced User's and System Administrator's Guide > Chapter 11 Creating
Data Types ManuallyDefining the Data Attributes of a Data Type |
|
The DATA_ATTRIBUTES definition defines the appearance and behavior of the data type. It specifies the name of the data type, and provides the ability to specify:
Use the ICON field to specify the icon used in File Manager. If you do not specify an icon image, File Manager displays only a label. The value of the ICON field can be:
Table 11-1 “Icon Names and Sizes for Data Type Icons” lists icon sizes you should create and the corresponding file names. Table 11-1 Icon Names and Sizes for Data Type Icons
There are two ways that data types are associated with actions: For example, the following data type definition creates a data type for special "readme" files created by your system administrator that use the naming convention *.rm.
A special Respond action is defined below for the file. It opens a writable copy of the file in Text Editor. When the file is saved and Text Editor is exited, the file is mailed to the system administrator (mail address sysadmin@utd).
If a file is an invisible data type, it never appears in File Manager. Use the PROPERTIES field in the DATA_ATTRIBUTES definition to specify that objects of this type be hidden:
The following DATA_ATTRIBUTES fields are used primarily by application programmers. They specify how files behave when the user performs various desktop activities. For more information, see the Common Desktop Environment Programmer's Guide, which is part of the developer environment documentation.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||