Site icon Python GUI

Add Strings to Various Components using .Items

photo of woman holding a gray laptop in front of systems

Photo by Christina Morillo on Pexels.com

In previous examples, we already use .Items several times (see Getting Started with DelphiVCL III: Overview of Commonly used VCL Components). We use it in ListBox, ComboBox, and RadioGroup. Items contain the strings that appear in the ListBox, ComboBox, and RadioGroup.

Use Items to add, insert, delete and move items. By default, the items in a list box are of type Strings. Use this item type to access its methods or properties to manipulate the items in the list.

Here is the working example of the implementation of .Items in the list box:

[crayon-6606b5f903eff061145195/]

The result:

Here is the working example of the implementation of .Items in combo box:

[crayon-6606b5f903f0d707130833/]

The result:

 

Here is the working example of the implementation of .Items in radio group:

[crayon-6606b5f903f17331043396/]

The result:

 

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

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

Exit mobile version