Category
Category
elements group the actions and are used to organize actions in
a way that are easy to find by a user.
The Creatables
element contains two levels of Category
elements. The first Category
element corresponds to the
Categories list in the File >> New dialog. The second
Category
element corresponds to the Types section in the
File >> New dialog.
Attribute | Required | Options |
---|---|---|
index |
Index indicates creatable order within a category. | |
name |
Creatable name (internal id) | |
label |
Creatable text. | |
icon |
Icon in $GSTDIR/images/ |
Syntax
<Creatables>
<Category attributes >
<Category attributes >
<New attributes />
<File attributes />
<Directory attributes />
<Wizard attributes />
</Category>
</Category>
</Creatables>
Child elements
The Category
element may contain the following child elements:
- One or more
Category
elements. - One or more
creatable
elements.
Example: Managed Form File Type
<Creatables version="1.0">
<Category index="5" label="Design" name="MDA" icon="document_4ba" >
<Category index="40" label="Managed Code" name="ManagedCode">
<Wizard index="10"
name="FDModuleForm"
action="FDNew"
label="Module Form from Database (4fdm)"
icon="document_4fdm"
description="Create an empty module in Form Designer"
extension="4fdm" />
</Category>
</Category>
</Creatables>