My code is below, but how does this affect anything? These "wrappers" usually cause updates to be slower. This is not an update issue, as the delay is long after the items were added.
procedure TfrmIphoneControl.FormCreate(Sender: TObject);
begin
LogReport(leInformation, 'Application start ' + DateTimeToStr(Now));
FillItemsList;
end;
procedure TfrmIphoneControl.FillItemsList;
var
xOptions : TStringList;
xResponses : TStringList;
nLoop: Integer;
xItem : TTMSFMXTableViewItem;
szBuild : String;
nResponseLoop: Integer;
begin
xOptions := nil;
xResponses := nil;
try
xOptions := TStringList.Create;
xResponses := TStringList.Create;
FillResponseList(xOptions);
lstOptionView.Items.Clear;
for nLoop := 0 to xOptions.Count - 1 do
begin
xItem := lstOptionView.Items.Add;
xItem.Caption := xOptions[nLoop];
szBuild := '';
FillOptionsList(xOptions[nLoop], xResponses);
xResponses.Delete(0);
for nResponseLoop := 0 to xResponses.Count - 1 do
begin
if szBuild <> '' then
szBuild := szBuild + ', ';
szBuild := szBuild + xResponses[nResponseLoop];
end;
xItem.Description := szBuild;
end;
// cboResponses.Items := xStrings;
finally
FreeAndNil(xOptions);
FreeAndNil(xResponses);
end;
end;
// The list items are of the form: AddList('Low-High' , 'c,High,Medium,Low' );
procedure TfrmIphoneControl.btnOptionsClick(Sender: TObject);
begin
popOptions.Popup; // this is where the seconds are taken
end;
// The lfm popup
object popOptions: TTMSFMXPopup
Position.Point = '(106,8)'
Width = 281.000000000000000000
Height = 385.000000000000000000
Visible = False
StyleLookup = 'popOptionsStyle1'
TabOrder = 17
AutoPosition = False
DetailControl = lstOptionView
Placement = plTopCenter
PlacementTarget = aniWorking
HeaderButtons = <>
FooterButtons = <
item
Width = 50.000000000000000000
Kind = bkDone
end>
HeaderText = 'Options'
FooterHeight = 24.000000000000000000
HeaderHeight = 24.000000000000000000
ArrowPosition = paRightCenter
ArrowHeight = 11.000000000000000000
ArrowWidth = 23.000000000000000000
Version = '1.1.0.3'
OnFooterButtonClick = popOptionsFooterButtonClick
object lstOptionView: TTMSFMXTableView
Position.Point = '(16,40)'
Width = 233.000000000000000000
Height = 233.000000000000000000
Visible = False
StyleLookup = 'lstOptionViewStyle1'
TabOrder = 0
Fill.Kind = bkSolid
Stroke.Kind = bkSolid
StrokeThickness = 1.000000000000000000
CanFocus = True
SelectedItemIndex = 2
Items = <
item
Caption = 'Item 0'
Description = 'Description of Item 0'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 1'
Description = 'Description of Item 1'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 2'
Description = 'Description of Item 2'
DataBoolean = False
Selected = True
end
item
Caption = 'Item 3'
Description = 'Description of Item 3'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 4'
Description = 'Description of Item 4'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 5'
Description = 'Description of Item 5'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 6'
Description = 'Description of Item 6'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 7'
Description = 'Description of Item 7'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 8'
Description = 'Description of Item 8'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 9'
Description = 'Description of Item 9'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 10'
Description = 'Description of Item 10'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 11'
Description = 'Description of Item 11'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 12'
Description = 'Description of Item 12'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 13'
Description = 'Description of Item 13'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 14'
Description = 'Description of Item 14'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 15'
Description = 'Description of Item 15'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 16'
Description = 'Description of Item 16'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 17'
Description = 'Description of Item 17'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 18'
Description = 'Description of Item 18'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 19'
Description = 'Description of Item 19'
DataBoolean = False
Selected = False
end
item
Caption = 'Item 20'
Description = 'Description of Item 20'
DataBoolean = False
Selected = False
end>
Categories = <>
MarkText = 'Mark'
MoveText = 'Move'
ArchiveText = 'Archive'
HeaderText = 'Header'
Version = '1.1.0.3'
OnItemClick = lstOptionViewItemClick
end
end