GetTabSequence

Forms, interaction, input

Description

Computes the navigation order over all visible Widgets of a TPDFlibFormSession, across pages in page order

Entries are grouped by page and ordered within each page by its /Tabs value: /S follows the structure tree, /R orders by rows and /C by columns, while a missing or invalid value falls back to annotation-array order

/R and /C honor a right-to-left ViewerPreferences /Direction by mirroring the horizontal comparison

Structure order walks the document structure tree recursively including object references, annotation order comes from each page /Annots array, and ties fall back to annotation order and finally to enumeration serial

Fields with Widget kids contribute one entry per visible kid through their temporary Widget indexes

Declaration

function GetTabSequence(
  out FieldIndices: TPDFlibFormFieldIndices): Integer;

Parameters

FieldIndicesReceives the ordered field and temporary Widget indexes, empty on failure

Return value

Returns the number of entries in FieldIndices, or 0 when no library is attached or no visible Widget exists

See also

FocusNext, HitTest, GetFieldPageRect, TPDFlibFormFieldIndices, TPDFlibFormSession