This is with 2019r1.1 on either Win7 or 10.
I have listbox where each item can have one of 3 states (or none for the first item in the list).
I have segmented control below it set to SelectionState Single.
In the listbox change event I set the section value for segment representing the state of that item to true.
On the Mac it works as expected when the listbox selected row changes…
On Windows however, the selected he SegmentedControl does not change to reflect the state of the listbox row that is selected.
Anybody else see this? If it’s bug is there a workaround?
Is it something I am doing?
My code in the listbox change event is: ( MaskingSC is the SegmentedControl)
Dim row as Integer = me.ListIndex
If row = -1 then Return
if Row = 0 then
MaskingSC.Enabled = False
For i as Integer = MaskingSC.Items.UBound DownTo 0
MaskingSC.Items(i).Selected = false
Next
Return
Else
MaskingSC.Enabled = true
End if
' This is the data in the listbox row
Dim Level As MicroPlate.Kinetic.Velocity.Level = MicroPlate.Kinetic.Velocity.Level(Sample.Dilutions(me.RowTag(row).IntegerValue))
Select Case Level.Usage
Case MicroPlate.UsageTypes.Never
MaskingSC.Items(0).Selected = true
Case MicroPlate.UsageTypes.Always
MaskingSC.Items(1).Selected = true
Case MicroPlate.UsageTypes.IfPasses
MaskingSC.Items(2).Selected = true
End Select