Combobox, DBLookupCombobox does not search correctly.
Original Reporter info from Mantis: melwinek
-
Reporter name:
Original Reporter info from Mantis: melwinek
- Reporter name:
Description:
Im my test form is only Combobox and Button.
When Program start, Value in Combobox is not correct, after button click is correct.
In attachment is two screenshoots (before and after button click) and source.
My code:
object Button1: TButton
Left = 96
Height = 25
Top = 80
Width = 75
Caption = 'Button1'
OnClick = Button1Click
TabOrder = 0
end
object ComboBox1: TComboBox
Left = 80
Height = 23
Top = 41
Width = 100
AutoComplete = True
AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
ItemHeight = 15
Items.Strings = (
'AAB'
'AĄB'
'ABB'
)
Sorted = True
Style = csDropDownList
TabOrder = 1
end
procedure TForm1.FormCreate(Sender: TObject);
begin
ComboBox1.ItemIndex:=ComboBox1.Items.IndexOf('ABB');
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ComboBox1.ItemIndex:=ComboBox1.Items.IndexOf('ABB');
end;
Mantis conversion info:
- Mantis ID: 29418
- OS: Windows
- OS Build: 7
- Platform: x86
- Version: 1.4.4
- Fixed in version: 1.6.2
- Target version: 1.6.2