Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TMS FMX UI Pack
Updating the FireMonkey controls at runtime
Updating the FireMonkey controls at runtime
To increase the performance, and to make sure all properties functions methods are executed and set, encapsulate every runtime update with a BeginUpdate and EndUpdate call.
var i: integer; begin TMSFMXTableView1.BeginUpdate; for i := 0 to 1000 do begin TMSFMXTableView1.Items.Add.Caption := 'item '+ inttostr(i); end; TMSFMXTableView1.EndUpdate; end;
var i: integer; begin TMSFMXGrid1.BeginUpdate; TMSFMXGrid1.ColumnWidths[2] := 100; TMSFMXGrid1.EndUpdate; end;