FMX.TabSlideTransition Sample

From RAD Studio Code Examples
Jump to: navigation, search

This is a sample that illustrates how to add dynamism to use tab sliding effects in mobile applications, using FireMonkey.

Location

You can find the TabSlideTransition sample project at:

How to Use the Sample

  1. Navigate to the one of the locations given above, and open:
    • Delphi: TabSlidingProject.dproj
    • C++: TabSlidingProject.cbproj
  2. Press F9 or choose Run > Run.

Classes

TabSlideTransitionFrmBase represents the main window of the sample. It contains the following components:

Implementation

  • When you run the application, the first TabItem1 is displayed. Before going to any of the next tab items, all fields on the tab must be completed. Otherwise, the Next button is not Enabled.
  • On pressing the Next or Back buttons on the toolbar tab control, the NextTabAction or

PreviousTabAction tab switching actions are invoked.

  • To assign these actions to toolbar buttons, in the Structure view select a button, for example Next ({Code|Button1}}). In the Object Inspector, select the Action node, click the down arrow on the right, and assign New Standard Action > Tab > TNextTabAction to the Action property. To set the TabControl tab control in which to make switching of active tabs, in the Object Inspector, expand the Action node, select the TabControl item, and click the down arrow on the right. From the list, select the TabControl1 tab control.
  • To enable or disable the Keyboard Toolbar, the SetToolbarEnabled method is used.
  • The Keyboard Toolbar is implicitly hidden, appearing only when completing information in TEdit objects. Setting the visibility is achieved using the following method: SetHideKeyboardButtonVisibility.

Uses

See Also

Personal tools
Assistance