Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS TableView for FireMonkey
Adding an element at runtime

To add an element at runtime, the shape that is connected to the TTMSFMXTableViewItem must exist. The shape can be returned using the Shape function on the TTMSFMXTableViewItem:

var
  shp: TTMSFMXTableViewItemShape;

shp := TMSFMXTableView1.Items[0].Shape;
 

To add a element / control to that shape, simply create that element and add it as a child of the item.
r := TRectangle.Create(shp);
shp.AddObject(r);