deactivate
deactivate();
The deactivate event of the Form class occurs when a different form becomes the active window.
When a non-MDI form or another MDI frame is then made active, both the active child and the MDI frame receive deactivate events (in that order). When moving between child forms of an MDI frame, only the child forms receive a deactivate event.
The deactivate event occurs when moving the focus within an application (including MDI to non-MDI) and to another application. The deactivate event does not occur when unloading a form.
The handling of activate and deactivate events ensures that the following events occur once only.
-
deactivate of the prior active form.
-
deactivate of the MDI frame of the prior active form if it was an MDI child and the new form gaining focus is not the MDI frame or a child of the MDI frame.
-
activate of the MDI frame if the form to be activated is an MDI child and the frame is not already active.
-
activate of the form to be activated.
If another Windows or Jade application is activated while a Jade application is active, only deactivate events are generated for the deactivated Jade application.
If a Jade application is activated when another Windows or Jade application is active, only the activate events are generated for the activated Jade application.