Jump to content


Photo

NxCombobox OnChange does not fire in case...


  • Please log in to reply
No replies to this topic

#1 downwards1

downwards1
  • Members
  • 57 posts

Posted 11 April 2007 - 09:59 PM

...you assign an ItemIndex and the string of this item is the same as the string of an item with another index.

E.g. 5 items in the combo wherby 2 are identical:
[0]Bird
[1]Cow
[2]Cow
[3]Horse
[4]Dog

do the following in this order:
ItemIndex := 0; //fires
ItemIndex := 2; //fires
ItemIndex := 3; //fires
ItemIndex := 2; //fires
ItemIndex := 1; //does not fire!!!
ItemIndex := 2; //does not fire!!!
ItemIndex := 1; //does not fire!!!
ItemIndex := 2; //does not fire!!!
ItemIndex := 3; //fires
ItemIndex := 1; //fires

Workaround: I have to set ItemIndex := -1 and then to the final index.

BR
DW



By the way: the combobox shows a cursor even if its style is dsdropdownlist. -> blink.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users