Site icon Python GUI

Create a Multiline Edit Control on a Form using delphivcl.Memo

focused black businesswoman using laptop

Photo by Ono Kosuki on Pexels.com

Description

delphivcl.Memo is a wrapper for a Windows multiline edit control.

We use Memo to put a standard Windows multiline edit control on a form. Multiline edit boxes allow the user to enter more than one line of text. They are appropriate for representing lengthy information.

Note: Under Windows, there may be a limit of 64k of text for this control.

Browse all the properties, methods, and built-in properties of the delphivcl.Memo using dir() command:

[crayon-68695850a28c6817617451/]

See the responses in our Windows command prompt:

Code example

Here is the working example of the implementation of delphivcl.Memo:

[crayon-68695850a28cd058557898/]

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

[crayon-68695850a28ce829912920/]

The result:

Note for beta release users

In practice, the only difference between DelphiVCL4Python release version and the beta version is only in how you write the DelphiVCL. Here is the example for how you import the library:

[crayon-68695850a28d0130372058/]
[crayon-68695850a28d1699021365/]

Watch this comprehensive introduction to Python GUI Development with DelphiVCL library video by Jim McKeeth:

Also, watch the following webinar by Alexey Sharagin to Master the Secrets of Beautiful Modern Windows Apps:


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

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


References & further readings

[1] Embarcadero DocWiki. (2014). 

Vcl.StdCtrls.TMemo. Embarcadero DocWiki. Embarcadero Technologies. docwiki.embarcadero.com/Libraries/Sydney/en/ Vcl.StdCtrls.TMemo

Exit mobile version