Site icon Python GUI

What is an OnDeactivate Event in DelphiVCL.Application?

delphivcl application blog banner

OnDeactivate or DelphiVCL.Application.OnDeactivate event Occurs when an application becomes inactive.

 

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:

[crayon-6633701fd21b4279039873/]

See the responses in our Windows command prompt:

You can also read short information about the DelphiVCL.Application.OnDeactivate using the print() command:

[crayon-6633701fd21bf672215869/]

See the responses in our Windows command prompt:

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Exit mobile version