Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWComboBox + OnAsyncChange + ItemsHaveValues
#1
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.


Attached Files
.zip   IWTEST.zip (Size: 1.61 KB / Downloads: 2)
Reply


Messages In This Thread
TIWComboBox + OnAsyncChange + ItemsHaveValues - by MJS@mjs.us - 11-29-2021, 03:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)