View Issue Details

IDProjectCategoryView StatusLast Update
0032301LazarusLCLpublic2017-08-19 23:06
ReporterMichl Assigned ToMichl  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
OSWindows 
Product Version1.9 (SVN) 
Target Version1.8 
Summary0032301: LCL: ComboBox: Win32: Don't loose ItemIndex with AutoComplete set.
DescriptionIf 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 Reproduceprocedure 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 InformationFirst reported here: http://forum.lazarus.freepascal.org/index.php/topic,37836.msg256650/topicseen.html
TagsNo tags attached.
Fixed in Revision55704
LazTarget-
WidgetsetWin32/Win64
Attached Files

Activities

Michl

2017-08-19 23:04

developer  

testproject.zip (1,958 bytes)

Issue History

Date Modified Username Field Change
2017-08-19 23:04 Michl New Issue
2017-08-19 23:04 Michl Status new => assigned
2017-08-19 23:04 Michl Assigned To => Michl
2017-08-19 23:04 Michl File Added: testproject.zip
2017-08-19 23:06 Michl Fixed in Revision => 55704
2017-08-19 23:06 Michl Status assigned => resolved
2017-08-19 23:06 Michl Resolution open => fixed