Development Guide

Table Of Contents
26 FileMaker Pro Advanced Development Guide
2. Rename the copy and include the .fth extension with the new filename.
Keep the new file in the Themes folder. In order for the New Layout/
Report assistant to display a theme option, the theme file must reside
in the Themes folder and it must have the .fth filename extension.
3. Open the theme file in a text editor.
4. Change the name of a theme by replacing the value of the
THEMENAME element with a new name.
<THEMENAME VALUE="Purple and White Screen" />
Note If your THEMENAME value contains any upper-ASCII
characters, use the HINT attribute to ensure that the theme name will
appear on both the Windows and Mac
OS X platforms.
5. Change the values of other elements and attributes.
For example, to change the background fill color of the body part in a layout
to a light purple, change the color hexadecimal (hex) value to #9933CC:
<BODYPART>
<FILL COLOR = “#9933CC” PATTERN = “2” />
6. Remove any elements that you don’t want to specify.
Be sure to remove the entire single-line or multi-line element
including its start and end tags.
7. Scroll down to the next FMTHEME element and repeat these steps
to change the THEMENAME value and other elements.
8. Save the file in text format with the filename extension .fth in the
Themes folder.
Each new THEMENAME value will appear in the New Layout/
Report assistant as a Layout Theme option.
9. In FileMaker Pro Advanced, choose Layouts menu > New Layout/
Report to use your theme.
Follow the instruction in the New Layout/Report assistant. Names of
custom themes appear as options. The third panel presents you with a
list of themes to select from.
If your new themes don’t appear in the New Layout/Report assistant,
you might have made a syntax error.
Requirements for theme files
Every theme file must begin with an XML-document processing instruction
that declares it as an XML document using the XML
1.0 specification. In
addition, an XML document for a layout theme must contain the
<FMTHEMES> and </FMTHEMES> start and end tags for the file. This
FMTHEMES root element can contain one or more FMTHEME elements.
For more information on theme elements and attributes, see Help.
Multi-line
element
Single-line
element
Attributes
Minimum elements required for a theme file