Developer’s Guide

Table Of Contents
5-4 Developer’s Guide
Removing elements from a theme file
The FileMaker Pro layout theme files contain multi-line elements for
fields, field labels, text, and every part in a layout. Each of these
elements contains other multi-line elements and single-line
elements. You can remove any of these elements, but you must
remove the entire element—that is, everything inside the element’s
start and end tags and the start and end tags as well.
FileMaker Pro will use default values for any elements you remove
(see “Specifying default values for themes” on page 5-9).
A single-line element, such as the PEN element, begins with <PEN
and ends with /> on a single line, and looks like this:
<PEN COLOR="#000066" PATTERN="2" SIZE="0" />
A multi-line element has start and end tags that look like this:
<BORDER>
</BORDER>
To remove a multi-line element, delete the start and end tags and all
elements contained within them. For example, to remove a multi-line
BORDER element in the Blue_gold.fth file, delete all three lines:
<BORDER>
<PEN COLOR="#000000" PATTERN="2" SIZE="1" />
</BORDER>
XML elements for layout parts
An FMTHEME element can contain any of the following multi-line
elements to describe the parts in a FileMaker Pro layout. Each layout
part element contains additional elements to describe the background
fill, text, field labels, and fields in the layout part.
Elements for layout parts can be listed in any order within an
FMTHEME element in the XML document. However, if two
identical elements are listed (such as two BODYPART elements),
FileMaker Pro will only use the attributes for the last one in the list.
This multi-lined
element is used To describe this layout part
<TITLEHEADERPART> Title header — appears only once at the top
</TITLEHEADERPART>
of the first screen or page.
<HEADERPART> Header — appears at the top of every screen
</HEADERPART>
or page (except the first one if there’s a title
header).
<LEADGRANDSUMPART> Leading grand summary — appears at the
</LEADGRANDSUMPART>
beginning of a report and displays a
summary field for all the records in a found
set. (A layout can have only one leading
grand summary part.)
<LEADSUBSUMPART>
</LEADSUBSUMPART>
Leading subsummary — appears above the
body part and displays a summary field for a
subset of records as defined by the break
field. You can describe up to nine leading
subsummary layout parts — each
LEADSUBSUMPART element must
contain a PARTNUMBER element to
distinguish it from the others.
<BODYPART> Body — appears in the middle of every
</BODYPART>
screen or page. (A layout can have only one
body part.)
<TRAILSUBSUMPART> Trailing subsummary — appears below the
</TRAILSUBSUMPART>
body part and displays a summary field for a
subset of records as defined by the break
field. You can describe up to nine trailing
subsummary layout parts — each
TRAILSUBSUMPART element must
contain a PARTNUMBER element to
distinguish it from the others.