RAD Studio 10.4.1 is now available! Learn more. Looking for discounts? Visit our Special Offers page!
C++Delphi

Open Another Dimension Using the THorzScrollBox Component in Delphi FireMonkey Apps On Android And iOS

The THorzScrollBox component helps you to widen your form. This HorizontalScroll sample demonstrates how to use the THorzScrollBox component to scroll through different pictures on your FireMonkey form.

Yeah, you already think you can make intro windows with that or interactive content! So how to use this component then? Here is our sample for you.

Overview

The HorizontalScroll sample shows how to use THorzScrollBox to scroll through different pictures on your iOS or Android device. The sample uses a THorzScrollBox component with four images that the user can move horizontally.

Classes

THorizontalScrollForm is the main form that represents the main window of the sample. It contains the following components:

Implementation

  • The sample uses THorzScrollBox to create a scroll box in a FireMonkey form restricted to horizontal scrolling.
  • The sample uses TImage to display and define 2D image components.

When you run the application, the sample uses THorzScrollBox to show a scroll box in your FireMonkey form with an image attached to each TImage component. The align property of the THorzScrollBox component is fixed to the client so that the horizontal scroll box fills the entire FireMonkey form except for the Tool Bar at the bottom. Therefore, if you slide your finger horizontally anywhere on the FireMonkey form, the images move horizontally.

Check out the full article in the DocWiki about the HorizontalScroll sample.

Check out the full source code for the HorizontalScroll project for Delphi and C++ Builder over on GitHub


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

Software Developer | B.Tech-CSE at AUT | Delphi/C++ Builder Enthusiast | Microsoft Learn Student Ambassador | Microsoft Azure Certified | Udacity Alumni
Related posts
C++RAD Studio

Achieve High Performance By Using The string_view C++17 Feature In C++Builder

C++CodeDelphi

Learn To Build A Python GUI For Working With The Numpy Library In A Delphi Windows App

C++DelphiRAD Studio

Speed Up FireMonkey Layout Construction And Painting Performance With These Tips

RAD StudioTech Partner

Powerful Live Local And Remote Application Logging With CodeSite Express In Delphi

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES