Delphi Quickly Enable Smooth Sliding Effects Between Tabs In Delphi Apps For Android And iOS

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
Quickly Enable Smooth Sliding Effects Between Tabs In Delphi Apps For Android And iOS
March 7, 2021 By Konstantin Tomov

FMX.TabSlideTransition Sample can add dynamism to use tab sliding effects in Mobile applications.

Location​

You can find the TabSlideTransition sample project at:
  • Start | Programs | Embarcadero RAD Studio Sydney | Samplesand navigate to:
    • Object PascalMulti-Device SamplesUser InterfaceTabSlideTransition
    • CPPMulti-Device SamplesUser InterfaceTabSlideTransition
  • Subversion Repository:
    • You can find Delphi and C++ code samples in Для просмотра ссылки Войди или Зарегистрируйся. Search by name into the samples repositories according to your RAD Studio version.

How to Use the Sample​

  1. Navigate to the one of the Для просмотра ссылки Войди или Зарегистрируйсяgiven above, and open:
    • Delphi: TabSlidingProject.dproj
    • C++: TabSlidingProject.cbproj
  2. Press F9 or choose Run > Run.
1615152047128.png

Classes​

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

Implementation​

Для просмотра ссылки Войди или Зарегистрируйся 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 Для просмотра ссылки Войди или Зарегистрируйся tab control in which to make switching of active tabs, in the Object Inspector, expand the Action node, select the Для просмотра ссылки Войди или Зарегистрируйся 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 Для просмотра ссылки Войди или Зарегистрируйся method is used.
  • The Keyboard Toolbar is implicitly hidden, appearing only when completing information in Для просмотра ссылки Войди или Зарегистрируйся objects. Setting the visibility is achieved using the following method: Для просмотра ссылки Войди или Зарегистрируйся.
You can refer to the link below for more information about this sample:

Для просмотра ссылки Войди или Зарегистрируйся

Для просмотра ссылки Войди или Зарегистрируйся