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
TTMSFMXTableView: How to customize the items to have a Bubble message list
TTMSFMXTableView: How to customize the items to have a Bubble message list
You can easily override the item shapes with the OnItemCustomize event. Below is a small sample that demonstrates this:
procedure TForm1.TMSFMXTableView1ItemCustomize(Sender: TObject; AItem: TTMSFMXTableViewItem; AItemShape: TTMSFMXTableViewItemShape; AItemControlShape: TControl); begin if Odd(AItem.Index) then begin AItemShape.Margins.Left := 50; AItemShape.Fill.Color := TAlphaColorRec.Lime; end else AItemShape.Margins.Right := 50; AItemShape.Margins.Top := 5; AItemShape.Align := TAlignLayout.Top; AItemShape.Corners := AllCorners; end;