This topic covers the implementation details of TAllScriptStyles.
Scope: cpAllScriptStyles.pas; class derived from TBtnEditProperty. Prepared from the curated implementation supplied for this review on 2 October 2026.
ScriptStylesOptions contains EnableChecking; its record initializer sets true. The XML reader initializes the record before reading the supplied node.
Notation and shared helper rules: Reading this reference.
Literal rec_type values emitted within these routines: TScriptStylesOptionsRec. Nested values may belong to child wrappers rather than this owner itself; the attribute entries below give their exact locations.
Inherited implementation: TBtnEditProperty. Follow it when the ordered behavior invokes inherited methods; inherited fields are not repeated as locally owned fields.
Structures used directly by this XML implementation:
TScriptStylesOptionsRec (supporting record documented below).
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.
ScriptStylesOptions/EnableChecking
Turns checking on or off.
XML representation: The text of the EnableChecking element.
Initial value: true. The reader initializes the supporting options record before reading these fields.
Reading: Reads the element into ScriptStylesOptions.EnableChecking.
Writing: Stores true or false according to ScriptStylesOptions.EnableChecking whenever the writer reaches this field.
ScriptStylesOptions/@rec_type
XML representation: The rec_type attribute.
Writing: Stores the literal text “TScriptStylesOptionsRec” whenever the writer reaches this field.
Initialization and reset values
TAllScriptStyles.Create
Setting or temporary variable |
Initial value |
When it is assigned |
PropName |
“All Styles in Script” |
Always |
Required |
1 |
Always |
PropValue |
Default (TSL_PropValue) |
Always |
DataValue |
PropValue |
Always |
This routine also calls inherited Create; ScriptStylesOptions.Initialize; FillDisplayValue. See Implementation for their order and any conditional calls.
Supporting initializers and helpers supplied with the owner
These supporting records are used directly by this owner or by an initializer it calls. Their relevant supplied routines appear in separate Supporting implementation toggles below.
TScriptStylesOptionsRec.Initialize
Setting or temporary variable |
Initial value |
When it is assigned |
self |
Default (TScriptStylesOptionsRec) |
Always |
EnableChecking |
true |
Always |
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 |
ScriptStylesOptions |
TScriptStylesOptionsRec |
member |
TScriptStylesOptionsRec member shape
Member |
Declared type |
EnableChecking |
boolean |
The Implementation toggle contains only TAllScriptStyles methods. Initializers and helpers belonging to other types are identified separately below. Shared XML-helper limitations are explained in Reading this reference.
Supporting implementation — TScriptStylesOptionsRec
The following routines belong to TScriptStylesOptionsRec, a supporting type used by this implementation. They are not methods of TAllScriptStyles.
Declaration — TScriptStylesOptionsRec
Supporting implementation — TScriptStylesOptionsRec