12.07.2015 Views

TMS Pack for FireMonkey Developers Guide - TMS Software

TMS Pack for FireMonkey Developers Guide - TMS Software

TMS Pack for FireMonkey Developers Guide - TMS Software

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>TMS</strong> SOFTWARE<strong>TMS</strong> <strong>Pack</strong> <strong>for</strong> <strong>FireMonkey</strong>DEVELOPERS GUIDEGrouped view:Items are assigned to a group (Category) via the Item’s CategoryID property. When using categories,multiple items can be assigned to a group (Category).This sample code snippet initializes two groups with each two items in the TableView:varitm: T<strong>TMS</strong>FMXTableViewItem;begin<strong>TMS</strong>FMXTableView1.BeginUpdate;<strong>TMS</strong>FMXTableView1.Items.Clear;<strong>TMS</strong>FMXTableView1.Categories.Clear;// group 0<strong>TMS</strong>FMXTableView1.Categories.Add.Caption := 'Internet settings';// group 1<strong>TMS</strong>FMXTableView1.Categories.Add.Caption := 'Email settings';<strong>TMS</strong>FMXTableView1.CategoryType := ctCustom;itm := <strong>TMS</strong>FMXTableView1.Items.Add;itm.CategoryID := 0;itm.GroupIndex := 0;itm.Caption := 'Proxy';itm.Description := 'Proxy server name';itm := <strong>TMS</strong>FMXTableView1.Items.Add;itm.CategoryID := 0;itm.GroupIndex := 1;itm.Caption := 'IP address';itm.Description := '192.168.0.1';42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!