TComboBox.DropDownCount does not work
Original Reporter info from Mantis: ggeldenhuys
-
Reporter name: Graeme Geldenhuys
Original Reporter info from Mantis: ggeldenhuys
- Reporter name: Graeme Geldenhuys
Description:
When setting the DropDownCount it ignores the property and builds a list as long as can fit on the screen. This was tested under GTK and GTK2 only. See steps to reproduce.
Steps to reproduce:
Create a new application, drop two TComboBox controls on the form. Create a FormCreate event and add this code.
procedure TForm1.FormCreate(Sender: TObject);
begin
ComboBox2.Style := csDropDownList;
ComboBox2.DropDownCount := 8;
ComboBox2.Items.Clear;
ComboBox2.Items.Add('Line one');
ComboBox2.Items.Add('Line two');
ComboBox2.Items.Add('Line three');
ComboBox2.Items.Add('Line four');
ComboBox2.Items.Add('Line five');
ComboBox2.Items.Add('Line six');
ComboBox2.Items.Add('Line seven');
ComboBox2.Items.Add('Line eight');
ComboBox2.Items.Add('Line nine');
ComboBox2.Items.Add('Line ten');
ComboBox2.ItemIndex := 0;
end;
Mantis conversion info:
- Mantis ID: 1933
- OS: Ubuntu Linux
- OS Build: 5.10
- Build: 9015
- Platform: i386
- Version: 0.9.13 (SVN)
- Fixed in version: 0.9.25 (SVN)
- Monitored by: » Yogrik (Kozlov Igor)
- Target version: 1.0.0
- LazTarget: 1.0