OnDeactivate or DelphiVCL.Application.OnDeactivate event Occurs when an application becomes inactive.
Table of Contents
How to use the DelphiVCL.Application.OnDeactivate Event properly?
Write an OnDeactivate event handler to perform any special processing that should occur immediately before the application is deactivated. The OnDeactivate event occurs when the user switches from the application to another Windows application.
Note: You can also respond to this event using the TApplicationEvents component, which allows you to assign an event handler using the IDE.
Let’s take a look at all of DelphiVCL.Application.OnDeactivate properties, methods, and built-in properties:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.OnDeactivate) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.OnDeactivate using the print() command:
1 2 |
print(DelphiVCL.Application.OnDeactivate) print(DelphiVCL.Application.OnDeactivate.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.