- Function/Meaning
-
When the application becomes inactive
- Type
-
System class property (read/write)
- Description
-
Represents the event function called when the application becomes inactive.
If null is specified, the function will not be called.
Unlike normal event handlers, if you want to receive this event, set the function you want to call to this property.
Window.onDeactivate occurs when each individual window within the same application becomes inactive, but this event occurs when the main window becomes inactive.
Note that this event may occur even if the main window is already inactive (there is no guarantee that it will occur strictly in the order of onActivate -> onDeactivate -> onActivate -> ...).
- Reference
-
System.onActivate
Window.onActivate
Window.onDeactivate