Object PmiWCombo (ComboBox)

The item is determined for entering value by the selection from the list of pre-defined values. The selected value can be either an index, visible text or invisible value - see the configurator "What to write". The list can be displayed in the running application by the ALT+Down keys, texts can be selected by the Down/Up keys.

The selected choice is stored in the SelectedIndex, SelectedText and SelectedValue properties. If the selected value has a data binding, the value is written into the variable referred to by the data binding on changing the ComboBox value respectively in the time that is set by the Attributes configurator (on the Enter key, on the selection from the menu, etc.). The data binding is here of the read/write type, which means that if the variable of the data binding is changed even by other methods, then the change of this variable is reflected into the change of the ComboBox value.

This item is the Window item.

This object adopts properties and methods of object PmiItem
Properties and methods:
AddOption Add text to list
ColorItem Background color
ColorText Text color
Options Reading visible texts, hidden values or whole options from the list by the index
OptionsCount Number of options in the list
RemoveOptions Clearing the list
SelectedIndex Index of the selected text (zero-based index).
SelectedText Selected visible text
SelectedValue Hidden value associated with selected visible text
onDataEditAccept Fires on ending the value selection
onDataEditCancel Fires after pressing the Esc key
onDataEditing Fires on changing the selected value
Configuration windows:
Object General information about the object
Content Content of the graphic item in the XML form
Position Setting the position, width and height of the item
Variables List and configuration of user defined item variables
Events Algorithms definition for the object events
Methods Definition of user's methods of the graphic item
Combo PmiWCombo item attributes
Attributes PmiWCombo item attributes
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice