Page 1 of 1

Combo box bug ???

Posted: Wed May 12, 2004 11:40 am
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

Posted: Wed May 12, 2004 2:20 pm
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.

Posted: Wed May 12, 2004 11:15 pm
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

Posted: Sat May 15, 2004 2:07 pm
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