OnFocusChanged
Forms, interaction
Description
Occurs after each completed focus transition of the TPDFlibFormSession
The callback reports the previous and the new Widget index once the transition has finished, including transitions to zero that follow a rejected /Fo action or a blur
Transitions where both indexes are equal do not raise the callback
Declaration
property OnFocusChanged: TPDFlibFormSessionFocusEvent;
Handler parameters
| Sender | Session that completed the transition |
|---|---|
| OldFieldIndex | Previously focused field or temporary Widget index |
| NewFieldIndex | Newly focused field or temporary Widget index, or zero when focus was cleared |
See also
NotifyFocusChanged, OnAction, FocusField, Blur, FocusedFieldIndex