Up | Button | BitBtn | SpeedButton | CheckBox | ComboBox | Control | Edit | Memo | Font | GroupBox | Label | ListBox | PageControl | Panel | RadioButton | Bevel | ScrollBox | TabSheet | WinControl | Callback | Frame | WinControl | Form | Release Notes

 

  

 
ListBox

The ListBox class is derived from the WinControl class

access function : GetListBox(name)

Attributes of the ListBox class

Attribute Access Type Description
items R/W tuple the listbox items as a tuple of strings
itemIndex R/W int index of current selection, zero indexed. -1 if no selection
selItem R/W string the currently selected item
onClick W callback called when user clicks the control

Example 1: Populate Listbox

listBox=GetListBox('somename')
listbox.items+=('57_003','57_004','57_005')  #adds three new item to the listbox
listbox.selText='57_003'                     #selects one

 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.