Frequently Asked Component Specific Questions
Chronological |
By Author: |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>


TMS Pack for FireMonkey: Adding an element at runtime to the TTMSFMXTableView (May 9, 2012)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);
Pieter Scheldeman (May 9, 2012)



