This topic covers the implementation details of TTabsMonthOptions.
Scope: TypeDefinitions.pas; record. Prepared from the curated implementation supplied for this review on 2 October 2026.
Month-level tabulation options with type-dependent parameters. Keep selector values and their conditional payload together.
Notation and shared helper rules: Reading this reference.
Literal rec_type values emitted within these routines: TTabsMonthOptions. Nested values may belong to child wrappers rather than this owner itself; the attribute entries below give their exact locations.
Exact XML fields and attributes
The paths below start at this record or property node. A slash identifies a child element; @ identifies an attribute. Curly braces mark a variable index or expression, not literal XML text. Initial values describe initialization; they do not establish what an omitted individual element does. The Implementation toggle below contains the supplied routines for exact branch order and conversions.
@rec_type
XML representation: The rec_type attribute.
Writing: Stores the literal text “TTabsMonthOptions” whenever the writer reaches this field.
SpaceEvenly
XML representation: The text of the SpaceEvenly element.
Reading: Reads the element into SpaceEvenly when the record node exists.
Writing: Stores true or false according to SpaceEvenly whenever the writer reaches this field.
RightAligned
XML representation: The text of the RightAligned element.
Reading: Reads the element into RightAligned when the record node exists.
Writing: Stores true or false according to RightAligned whenever the writer reaches this field.
TabCount
XML representation: The text of the TabCount element.
Reading: Reads the element into TabCount when the record node exists.
Writing: Stores the numeric value of TabCount whenever the writer reaches this field.
Alignment
XML representation: The text of the Alignment element.
Reading: Reads the element into Alignment when the record node exists.
Writing: Stores the numeric value of Alignment whenever the writer reaches this field.
FirstTab
XML representation: The text of the FirstTab element.
Reading: Reads the stored number, divides it by 1000000.0, and assigns the result to FirstTab when the record node exists. The temporary numeric value starts at 0 before reading.
Writing: Stores FirstTab multiplied by 1000000, then rounded to an integer whenever the writer reaches this field.
WeekChangesMatter
XML representation: The text of the WeekChangesMatter element.
Reading: Reads the element into WeekChangesMatter when the record node exists.
Writing: Stores true or false according to WeekChangesMatter whenever the writer reaches this field.
Spacings/Spacing[@id={IntToStr (i)}]/@id
XML representation: The id attribute.
Writing: Stores the numeric value of i when for each i from low (Spacings) through high (Spacings).
Spacings/Spacing[@id={IntToStr (i)}]
XML representation: The text of the Spacing[@id={IntToStr (i)}] element.
Reading: Reads the stored number, divides it by 1000000.0, and assigns the result to Spacings[i] when the record node exists; node2 exists; SpaceEvenly is true. The temporary numeric value starts at 0 before reading.
Reading: Reads the stored number, divides it by 1000000.0, and assigns the result to Spacings[i] when the record node exists; node2 exists; SpaceEvenly is false; for each i from low (Spacings) through high (Spacings). The temporary numeric value starts at 0 before reading.
Writing: Stores Spacings[i] multiplied by 1000000, then rounded to an integer when for each i from low (Spacings) through high (Spacings).
Initialization and reset values
This type has no separate initializer in the supplied code. Its starting values come from its enclosing object, inherited initialization, or existing state. Relevant enclosing initializers are identified below.
Enclosing initialization contexts
The following enclosing routines establish or override this record’s starting values. Follow the owner link for the complete initializer. Different enclosing objects can supply different defaults.
TmcOneLineTabsOptions.Initialize is documented in TmcOneLineTabsOptions.
Storage declarations relevant to interpretation
These are in-memory member and property types, not a list of mandatory XML children. They retain array bounds, fixed buffers and selector types. The field reference above defines what is actually serialized.
Name |
Declared type / bounds |
Kind |
SpaceEvenly |
Boolean |
member |
RightAligned |
Boolean |
member |
FirstTab |
double |
member |
TabCount |
integer |
member |
Alignment |
integer |
member |
WeekChangesMatter |
Boolean |
member |
Spacings |
array [0..28] of double |
member |
The Implementation toggle contains only TTabsMonthOptions methods. Initializers and helpers belonging to other types are identified separately below. Shared XML-helper limitations are explained in Reading this reference.
Declaration reproduces this record’s complete declaration from the supplied source, including its fields, properties and method signatures.