LCL: ComboBox: Win32: Don't loose ItemIndex with AutoComplete set.
Original Reporter info from Mantis: Michl @michl1
-
Reporter name: Michl
Original Reporter info from Mantis: Michl @michl1
- Reporter name: Michl
Description:
If AComboBox AutoComplete and AutoDropDown is set and a item is selected by pressing some keys the ItemIndex is lost, after PopupWindow is closed.
Steps to reproduce:
procedure TForm1.FormCreate(Sender: TObject);
begin
ComboBox1.AutoDropDown := True;
ComboBox1.AutoComplete := True;
ComboBox1.Items.Append('1 - 0');
ComboBox1.Items.Append('11 - 1');
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Caption := IntToStr(ComboBox1.ItemIndex);
end;
Try press "11", it shows 0 after popup is closed.
Additional information:
First reported here: http://forum.lazarus.freepascal.org/index.php/topic,37836.msg256650/topicseen.html
Mantis conversion info:
- Mantis ID: 32301
- OS: Windows
- OS Build: 7
- Build: 55703
- Version: 1.9 (SVN)
- Fixed in revision: 55704 (#303502d4)
- Target version: 1.8