When you develop windows software use CreateForm method or DelphiVCL.Application.CreateForm to create a new form.
Call CreateForm to dynamically create a form at runtime. Developers do not need to add code for creating most forms, because typically one or more calls to CreateForm are added automatically to the project’s source when using the form designer.
CreateForm creates a new form of the type specified by the FormClass parameter and assigns it to the variable given by the Reference parameter. The owner of the new form is the Application object.
Note: By default, the form created by the first call to CreateForm in a project becomes the application’s main form.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.CreateForm using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.CreateForm) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.CreateForm using the print() command:
1 2 |
print(DelphiVCL.Application.CreateForm) print(DelphiVCL.Application.CreateForm.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.