UI.Combo
| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
A sequence of values. |
|
Any |
Output ➡️ |
|
The selected value. |
|
Any |
Label |
No |
The text label of this combobox. |
none |
StringNone |
Index |
No |
The index of the selected item. |
none |
IntVar(Int)None |
Width |
No |
The width of the button and menu. |
none |
FloatVar(Float) |
Style |
No |
The text style. |
none |
{Any}Var({Any}) |
A drop-down selection menu with a label.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | @wire(ui-wire {
UI.CentralPanel(
{["α Α" "ω Ω"]
UI.Combo(
Label: "Greek letter"
Style: {color: @color(200 10 200)}
Index: index
)
ExpectString >= letter
}
)
} Looped: true)
{ui-behavior: ui-wire}
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | @wire(ui-wire {
UI.Window(
Position: @f2(0 0)
Anchor: Anchor::Center
Width: 200
Height: 200
Flags: [WindowFlags::NoResize]
Contents: {
{["α Α" "ω Ω"]
UI.Combo(
Label: "Greek letter"
Index: index
)
ExpectString >= letter
}
}
)
} Looped: true)
{ui-behavior: ui-wire}
|