FocusNextFormField
Form fields, viewer interaction
Description
Moves focus to the next or previous visible form widget in the stable document tab order reported by GetFormFieldTabSequence, first navigating to the widget's page
Text and choice fields open their in-place editor while buttons stay focused so Space or Enter can activate them; read-only text, choice, checkbox and radio fields are skipped, and the Tab and Shift+Tab keys drive the same machinery when the viewer has keyboard focus
Syntax
Delphi
Function TPDFlibViewer.FocusNextFormField(Backwards: Boolean= False): Integer;Parameters
| Backwards | True walks the sequence backwards, the default False walks forward |
|---|
Return values
| 0 | No library is attached, no focusable field was found or the whole sequence was skipped |
|---|---|
| Positive value | One-based index of the widget that received focus |
See also
TPDFlibViewer, GetFormFieldTabSequence, BeginEditFormField, FocusedFormFieldIndex, ActivateFormField