DelphiDelphiVCLPythonPython GUIWindows

Create a Specific Component using DelphiVCL.CreateComponent

software-developer-coding-500x333

DelphiVCL.CreateComponent is a function to create a specified component.

We call CreateComponent to create an instance of ComponentClass at the position specified by the Left and Top parameters with the size specified by the Width and Height parameters. The new component will be a child of the component specified by the Parent parameter.

We can browse all the properties, methods, and built-in properties of the DelphiVCL.CreateComponent  using dir() command:

See the responses in command prompt:

1_1-2152449

Here is the working example of the implementation of DelphiVCL.CreateComponent to create a Main Panel inside your (previously created) basic form:

Run the complete script, to get the following result:

The result:

1_2-1357790

We will talk more about the Main Panel or TPanel in the next Section.

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

close
Related posts
DelphiDelphiVCLPythonPython GUIWindows

Create a ListBox using DelphiVCL.ListBox

DelphiDelphiVCLPythonPython GUIWindows

How To Set The Work Area's Sphere Of Influence Using Rect

DelphiDelphiVCLPythonPython GUIWindows

Create a CheckBox using DelphiVCL.CheckBox

Learn PythonPythonPython GUIVideos

Learn Python With The Hitchhiker's Guide to CLIs in Python by Vinayak Mehta (PyCon 2020) Video

Leave a Reply

Your email address will not be published. Required fields are marked *

en_USEnglish