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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TMS</strong> SOFTWARE<strong>TMS</strong> <strong>Pack</strong> <strong>for</strong> <strong>FireMonkey</strong>DEVELOPERS GUIDEClicking on the item that has a DetailView assigned automatically slides the main items list out ofview and slides in the DetailView. An extra back button, controlled by the TableView BackButtonproperty can be optionally shown and when clicked, it will slide out the DetailView and slide in theregular main items list.In this sample, we have placed three panels on the <strong>for</strong>m and assigned each panel to a differentitem:<strong>TMS</strong>FMXTableView1.Items[0].DetailView := Panel1;<strong>TMS</strong>FMXTableView1.Items[1].DetailView := Panel2;<strong>TMS</strong>FMXTableView1.Items[2].DetailView := Panel3;Clicking on the first item shows Panel1, the second item Panel2 and the third item Panel3.The automatic toggle between the main list and the detail list can be disabled by settingAutoToggleDetail: Boolean to false. From the OnItemClick or OnItemSelected event handler you canuse the ToggleDetailView() method to show the assigned DetailView of the item. With theOnBackButtonClick event you can programmatically return back to the main list.TForm1.<strong>TMS</strong>FMXTableView1BackButtonClick(Sender: TObject;AItem: T<strong>TMS</strong>FMXTableViewItem);40

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

Saved successfully!

Ooh no, something went wrong!