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

 

  

 
ComboBox

The ComboBox class is derived from the WinControl class

access function : GetComboBox(name)

Attributes of the ComboBox class

Attribute Access Type Description
items R/W tuple the combobox 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
text R/W string the currently selected text - applies to style 0
selText R/W string the currently selected text (only applicaple for style=2)
style R/W int 0=DropDown, 1=Simple, 2=DropDownList, 3=OwnerDrawFixed,
4=OwnerDrawVariable
onChange W callback called when user changes the text
onClick W callback called when user clicks the control

Example 1: Populate ComboxBox

comboBox=GetComboBox('somename')
comboBox.style=2                              #user can select only predefined items (can not edit selected text)
comboBox.items+=('57_003','57_004','57_005')  #adds three new item to the listbox
comboBox.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.