OnFocus (NotesUIDocument - LotusScript®)
Occurs when the subwindow displaying the document receives a focus notification.
Defined in
Syntax
OnFocus(Source As Notesuidocument)
Parameters
Source
NotesUIDocument. Read-only. The current document.
Usage
Using any LotusScript® in the onfocus event that changes focus to other views, forms, or subforms will cause the focus events in those subwindows to execute. First, the currently executing onfocus event code will run to completion, then the onblur code in the current subwindow and the onfocus/onblur code in other affected subwindows will execute. All onfocus/onblur events are queued and held until all current code is finished executing. If multiple onfocus/onblur events are queued for the same subwindow, onfocus will only execute once, and onblur will execute once if the subwindow no longer has focus once onfocus is done executing.
In the case of a form with subforms, all onfocus and onblur events are considered to be a single unit. Either all of them are executed, or none of them are executed.