Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/FireMonkey/Components    [ Add a report in this area ]  
Report #:  102122   Status: Closed
FireMonkey TListBox insert problem
Project:  Delphi Build #:  16.0.4358.45540
Version:    16.3 Submitted By:   Birkan Herguner
Report Type:  Basic functionality failure Date Reported:  12/27/2011 3:12:40 AM
Severity:    Serious / Highly visible problem Last Updated: 6/19/2013 6:44:41 AM
Platform:    All platforms Internal Tracking #:   289283
Resolution: Feature Removed (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 1
Description
In FireMonkey HD application, TListBox insert methot does not work.

Listbox1.Items.Insert(0,'a');

not inserting any line on the listbox.
Steps to Reproduce:
Put a TListBox and a TButton on a FireMonkey HD application.
On Button1's click event write,

Listbox1.Items.Insert(0,'a');

Workarounds
Use a for next statement for floating the items and set item[0]

Listbox1.Items.Add('');

for i := Listbox1.Items.Count - 1 downto 1 do
  Listbox1.Items[i] := Listbox1.Items[i - 1];

Listbox1.Items[0] := 'a';
Attachment
None
Comments

Tomohiro Takahashi at 12/27/2011 6:48:04 AM -
AFAIK, TComboBox also has same problem.

Alister Christie at 1/26/2012 2:32:31 PM -
ListBox1.InsertObject(AListItem, index) has the same problem

Tomohiro Takahashi at 1/26/2012 11:26:13 PM -
Could you please put new QC report about it?

Server Response from: ETNACODE01