Promotic

Combo - tab of the PmgWCombo object

Description:
Properties of the PmgWCombo object. There are also additional configurators on the tab Attributes.
Configurators:
Text colorText color of the object.
This configurator sets the initial value of the ColorText property.
Background colorBackground color of the object.
This configurator sets the initial value of the ColorItem property.
FontFont of the text.
The selected value isType of the written information into the data binding of the "Selected value" configurator.
Text - Selected visible text.
This configurator sets the initial value of the SelectedText property.
Index - Index of the selected row from the menu (0=first row in the menu).
This configurator sets the initial value of the SelectedIndex property.
Value - Invisible value connected with selected visible text. If there is the string value=text in the "Options" configurator, then ComboBox returns the corresponding string before the char =, i.e. value.
This configurator sets the initial value of the SelectedValue property.
Selected valueSelected value.
This configurator sets the initial value of the property SelectedText, SelectedIndex and SelectedValue (according to setting the "The selected value is" configurator).
If it is written into this property and if this property is linked to the data binding PP, AP, SP, OP or GP, then this value is transferred also into the source of this binding.
TypeType of the shape and the work with the ComboBox in the running application. It can be modified only if the "The selected value is" configurator is set to Text, otherwise always set to "Only selection".
Simple - The ComboBox displays the list. Any values can be entered. This option is obsolete and it isn't enabled in new objects.
Selection and edit - The ComboBox hides the list that can be then opened by the mouse or the Alt+Down keys. Any values can be entered. This option is not functional for PmgWCombo yet.
Only selection (default) - The ComboBox hides the list that can be then opened by the mouse or the Alt+Down keys. Only values from the list can be entered.
OptionsPre-defined list of options. Texts of options from the list can be read by the Options method, the list can be modified by methods AddOption and RemoveOptions.
Each option is on separate row in the following syntax: value=text, where
- value represents the hidden value of the option (identifier),
- text represents the displayed text of the option itself.

The example of the settings for 2 options:
t1=Open valve
t2=Close valve


The displayed text can be set in the form of Macro expression $.text (suitable, for example, for various language versions). Then the same example could look like this:
t1=$.text('app','ValveOpen')
t2=$.text('app','ValveClose')
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.