Event OnExit (Sender: Object)
Description
Event that occurs when the input focus shifts away from one control to another.
Details
Use the OnExit event handler to provide special processing when the control ceases to be active. The OnExit event does not occur when switching between forms or between another application and your application. When switching between controls in separate container controls such as the TPanel and the TGroupBox controls, an OnExit event occurs for the control inside the container before the OnExit event of the container.
Similarly, an OnEnter event of the container occurs before the OnEnter event of the control in a container when focus moves to a control inside a container.