Home » U++ Library support » U++ Widgets - General questions or Mixed problems » BUG? DropList shows first of entries with same key
BUG? DropList shows first of entries with same key [message #32143] |
Wed, 27 April 2011 17:34 ![Go to next message Go to next message](theme/default/images/down.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/787.jpg) |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
hi
a DropList with such entries
dl.Add(100, "Apple");
dl.Add(100, "Cherry");
dl.Add(101, "Pear");
dl.Add(100, "Berry");
will always show 'Apple' even if Cherry or Berry are selected.
it's due to Sync() method which key.Find()'s the value of the first entry only..(typical Map/Index behaviour).
it'd be great to be able to select the entries independantly, even if they got the same key..
is that possible somehow?
[Updated on: Wed, 27 April 2011 17:35] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sun Sep 01 04:56:44 CEST 2024
Total time taken to generate the page: 0.03486 seconds
|