NotifyFocusChanged
Forms, interaction
Description
Raises OnFocusChanged for one completed focus transition
The callback is invoked only when the two indexes differ and a handler is assigned, so focus confirmations that keep the current Widget and transitions suppressed by vetoes without an index change stay silent
Focus changes inside the session route their notifications through this routine, including transitions to zero after a vetoed /Fo action or a blur
Declaration
procedure NotifyFocusChanged(OldFieldIndex, NewFieldIndex: Integer);
Parameters
| OldFieldIndex | Previously focused field or temporary Widget index |
|---|---|
| NewFieldIndex | Newly focused field or temporary Widget index, or zero when focus was cleared |
See also
OnFocusChanged, FocusField, Blur, FocusedFieldIndex, OnAction