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 GUIDEUser interface interaction with the TableViewThe list supports scrolling, navigation and selection. Interaction with the list can be done with thekeyboard and the mouse.With the keyboard you can navigate through the items, each time you press the up, down, left orright keys the list selects the previous or next item. The home key selects the first item while theend key selects the last item. When pressing the pagedown or pageup key the list jumps in steps ofthe BufferSize, if the BufferSize = 0 the step is set to 10.When navigating through the list with the keyboard, the list automatically loads the next buffer.To navigate in the list with the mouse, you can click and hold your left mouse button on the listthen drag up or down depending in the direction you want the list to scroll. When making a flickgesture the list will scroll a certain amount of items with an inertia animation. The faster you flickwith the mouse the faster and the further the list will scroll.MultiSelectThe TableView supports multiple item selection. Multiple item selection can be enabled by settingthe MultiSelect property to true. Clicking on an item selects that item and when you click onanother item, the previous item is deselected. To select multiple items, you need to hold the CTRLor SHIFT key on the keyboard. With the CTRL key you are able to select items of choice and withthe SHIFT key the list selects all items between the first and the last item you have clicked.MultiSelect can be done by keyboard alone, pressing the direction keys and holding the CTRL orSHIFT key at the same time. Below is a sample of multiple items selected in the list by holding theCTRL key and clicking several items.Programmatically, in multiselect mode, the selected of an item can be get or set with the item’sSelected: Boolean property. In addition, two helper methods exist: SelectAllItems, DeSelectAllItemsto programmatically select or unselect all items at once.This sample code snippet programmatically selects items 1,3,5:<strong>TMS</strong>FMXTableView1.MultiSelect := true;44

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

Saved successfully!

Ooh no, something went wrong!