Window.onActivate

Function/Meaning
Called when the window becomes active
Type
Window class event
Syntax
onActivate()
Arguments
None
Description
Represents the event function called when the window becomes active.
Note that this event may occur even if the window is already active (there is no guarantee that it will occur strictly in the order of onActivate -> onDeactivate -> onActivate -> ...).
Reference
Window.onDeactivate
System.onActivate
System.onDeactivate