FMX.Mobile.TabSlideTransition Sample (C++)

From Appmethod 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 FireMonkeyMobile TabSlideTransition sample project at:


How to Use the Sample

  1. Navigate to the location given above and open TabSlideTransition.cbproj.
  2. Press F9 or choose Run > Run.

Files

File Contains

TabSlideTransitionBase.pas

The base class for displaying the visual components.

TabSlideTransition_iPad.pas

Inherits TabSlideTransitionBase. It is the class for displaying visual components on the iPad.

TabSlideTransition_iPhone5.pas

Inherits TabSlideTransitionBase. It is the class for displaying visual components on the iPhone 5.

Classes

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

Implementation

  • When you run the application, the first TTabItem is displayed. Before going to any of the next TTabItem, all fields must be completed on the previous tabs. Otherwise, the Next button is not Enabled.
  • On pressing the Next or Back buttons on the form, a TChangeTabAction is invoked.
  • 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