TComboBox in csDropDown Mode Fails for Partial Match
Original Reporter info from Mantis: abpc
-
Reporter name: Andrew Pearse
Original Reporter info from Mantis: abpc
- Reporter name: Andrew Pearse
Description:
Program overrides user edited text if that text happens to partially match a value in the drop-down list. Occurs when csDropDown and AutoDropDown are both set.
Steps to reproduce:
Download project1.zip, unzip it, compile it, and run - just try to enter the word Exam,
or do the following:
- Place a combobox on a form and set these properties:
AutoDropDown:=True;
AutoComplete:=True;
Items.Text:='Example';
-
Run program then type 'e','x','a','m',backspace,enter
Result is 'Example', which is wrong, it should still be 'Exam'. -
Now stop and change the style property to csSimple.
-
Run then type 'e','x','a','m',backspace,enter
Result is 'Exam', which is correct.
Additional information:
There are similar but worse faults in the TDBLookupComboBox which I hope to report separately.
See demo file uploaded: project1.zip.
Same fault tested and also failed in other versions:
1.0.12 42478
1.0.10 41613
Previous versions and other widget sets not tested yet but this was a bug fixed back in 2009 (LazBug ID: 0010929).
Mantis conversion info:
- Mantis ID: 25320
- OS: Windows XP
- OS Build: Pro 2002 SP3
- Build: 43359
- Platform: Windows
- Version: 1.2.0RC1