Site icon Python GUI

Understanding DelphiVCL.Application.BeginInvoke

featuredimage2 4

BeginInvoke method or DelphiVCL.Application.BeginInvoke is used to perform an asynchronous call to the method specified by either AProc or AFunc.

The AContext parameter specifies the context where the method executes in. This context corresponds to the main thread. In case of a Tcontrol descendant, it executes in the context of the thread on which the closest window handle was created.

BeginInvoke returns the results of the asynchronous execution in an interface IAsyncResult used as a return type.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.BeginInvoke using dir() command:

[crayon-6634246ee5dfa784697643/]

See the responses in our Windows command prompt:

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

[crayon-6634246ee5e04826009051/]

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