Object PmgWCombo (ComboBox)

The object serves 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 "The selected value is" configurator. 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 option is stored in the SelectedIndex, SelectedText and SelectedValue properties. If the selected value has a data binding, then 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 on the "Attributes" tab (on the Enter key, on the selection from the menu, etc.). The data binding is here "for read and write", it 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 object is the Window Pmg object.
This object adopts properties and methods of the PmgObject object.
Properties and methods:
AddOption Adds an option into the list
ColorItem Background color
ColorText Text color
Options Reading visible texts, hidden values or whole options from the list by the index
OptionsCount The 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 Is triggered on ending the value selection
onDataEditCancel Is triggered after pressing the Esc key
onDataEditing Is triggered on changing the selected value
onFocusIn Is triggered if the object receives focus
onFocusOut Is triggered if the object loses focus
onModeChange Is triggered when the Pmg object mode changes
onRefresh Is triggered on the data refresh of the Pmg object
onStart Is triggered on the construction of the Pmg object in the course of opening the panel
onStop Is triggered on the destruction of the Pmg object in the course of closing the panel
Configuration tabs:
Object General information about the object
Position Setting the position, width and height of the Pmg object
Variables List and configuration of user defined Pmg object variables
Events Algorithms definition for the object events
Methods Definition of designer's method of the Pmg object
Combo Properties of the PmgWCombo object
Attributes Attributes of the PmgWCombo object

Pm9.00.00: Object name changed: PmiWCombo -> PmgWCombo
Pm8.02.13: the object size did not adapt to font size in the runtime mode.
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice