Combo box bug ???

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Acki

Combo box bug ???

Post by Acki »

Hi,
I tried out the combo box.
It works o.k., so far, but if I open the box and close it without selecting any list item, the combo box will select the first list item !!!

For example:
the 4th list item is selected.
I open the combo box and close it without selecting another item.
Now the 1st item is selected (but it should be the 4th, because I selected no other) !!!

What can I do against this ???



thx, Acki
Domarius
Posts: 178
Joined: Thu Mar 11, 2004 9:51 am
Location: Brisbane, QLD, Australia

Post by Domarius »

Heh, I don't know, but while you're waiting for a real answer, I just though you could make a work around - set it to the 'default' value that it was before the user clicked on it, if no other items were selected.
Acki

Post by Acki »

Well, I can do that (I think)...
but it should hold the selected item, shouldn't it ???

Maybe Niko can solve this prob in the next version... :wink:


CU, Acki
Acki

Post by Acki »

Well, I can't get it to work...
There is no event for the combo box be closed without selecting any entry...
Also there's no event to check if an entry was selected, nor to check if the combo box was opened or closed...

If the combo box would set the index to -1, when closing it without selecting an entry, I could do it, but it sets the index to 0 and this could be a selction of the user...

That's over my head... :(

Any suggestions ???

CU, Acki
Post Reply