DelphiDelphiVCLPythonPython GUIWindows

Add Strings to Various Components using .Items

photo of woman holding a gray laptop in front of systems

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:

The result:

1_1-7151798

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

The result:

1_2-7158822

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

The result:

1_3-9340754

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

close
Related posts
DelphiDelphiVCLPythonPython GUIWindows

Learn about the DelphiVCL.Component as the Common Ancestor of All Component Classes

Learn PythonPythonVideos

Learn Python With The Hidden Power of the Python Runtime by Elizaveta Shashkova (PyCon 2020) Videos

Learn PythonPythonVideos

Learn Python With Organizing to Improve Your Workplace: Know Your Rights by Shauna Gordon-McKeon (PyCon 2020) Video

DelphiPythonPython GUIWindows

Learn To Build A Python GUI For Manipulating Datetime Using Delorean Library In A Delphi Windows App

Leave a Reply

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

en_USEnglish