11-29-2021, 03:32 PM
C++ Builder 11.0 / IW 15.2.47
TIWComboBox ItemIndex is not always updated correctly.
For example: TIWComboBox Items populated with
A=1
B=1
C=1
D=2
and ItemsHaveValues = true so that only Names[] values A, B, C, D are visible.
When selecting:
A, ItemIndex == 0 // correct
B, ItemIndex == 0 // incorrect
C, ItemIndex == 0 // incorrect
D, ItemIndex == 3 // correct
The ItemIndex seems to be affected by the Values[] column.
Desired behavior is for ItemIndex to be updated to the true selection offset regardless of the Items content.
Demo attached.
TIWComboBox ItemIndex is not always updated correctly.
For example: TIWComboBox Items populated with
A=1
B=1
C=1
D=2
and ItemsHaveValues = true so that only Names[] values A, B, C, D are visible.
When selecting:
A, ItemIndex == 0 // correct
B, ItemIndex == 0 // incorrect
C, ItemIndex == 0 // incorrect
D, ItemIndex == 3 // correct
The ItemIndex seems to be affected by the Values[] column.
Desired behavior is for ItemIndex to be updated to the true selection offset regardless of the Items content.
Demo attached.