BaseFieldIndex

Forms, interaction, data types

Description

Internal helper of TPDFlibFormSession that maps a field or temporary Widget index to the index of its base field

Ordinary field indexes pass through unchanged

Temporary Widget indexes are recognized by their tag bits, `(FieldIndex and $55000000) = $55000000`, and decoded with `(FieldIndex and $00FFFFFF) shr 8`

Editing, activation and focus code use the helper to attribute Widget-level input to the parent field that stores the value

Declaration

function BaseFieldIndex(FieldIndex: Integer): Integer;

Parameters

FieldIndexField or temporary Widget index to resolve

Return value

Returns the base field index, which equals FieldIndex for ordinary field indexes

See also

EditingFieldIndex, FocusedFieldIndex, HitTest, GetTabSequence, TPDFlibFormSession