DelphiDelphiVCLPythonPython GUIWindows

Create an Edit Controls using DelphiVCL.Edit or TEdit

woman wearing red and black checkered blouse using macbook

DelphiVCL.Edit or TEdit is a wrapper for a Windows single-line edit control.

We can use an Edit object to put a standard Windows edit control on a form. Edit controls are used to retrieve text that users type. Edit controls can also display text to the user.

When only displaying text to the user, choose an edit control to allow users to select text and copy it to the Clipboard. Choose a label object if the selection capabilities of an edit control are not needed.

Edit implements the generic behavior introduced in CustomEdit. Edit publishes many of the properties inherited from CustomEdit, but does not introduce any new behavior. For specialized edit controls, use other descendant classes of CustomEdit or derive from it.

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

See the responses in command prompt:


Here is the working example of the implementation of DelphiVCL.Edit to create an Edit Box inside our form:

To see the result, let’s run the complete script:

The result:


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

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 *