TPDFlibFormInputResult
Forms, interaction, data types
Description
Reports whether a platform-independent form input event was consumed and exposes the resulting interaction state without requiring additional session queries
Declaration
type
TPDFlibFormInputResult = record
Handled: Boolean;
DefaultPrevented: Boolean;
FocusChanged: Boolean;
SelectionChanged: Boolean;
ValueChanged: Boolean;
FieldIndex: Integer;
FocusedFieldIndex: Integer;
HoveredFieldIndex: Integer;
PressedFieldIndex: Integer;
end;
Fields
| Handled | True when the form session consumed the event; False permits host fallback such as document scrolling |
|---|---|
| DefaultPrevented | True when a form action vetoed its pending default operation or a required focus transition failed |
| FocusChanged | True when dispatch changed the focused Widget |
| SelectionChanged | True when dispatch changed the active editor or its directed selection |
| ValueChanged | True when dispatch committed a new button or choice-field value |
| FieldIndex | Hit, captured or focused field associated with the event, or zero |
| FocusedFieldIndex | Focused field after dispatch, or zero |
| HoveredFieldIndex | Widget with an active entered state after dispatch, or zero |
| PressedFieldIndex | Widget retaining primary-pointer capture after dispatch, or zero |
See also
DispatchInputEvent, TPDFlibFormInputEvent, TPDFlibFormSession