FMX.PlatformScrollBox Sample

From Appmethod Code Examples
Jump to: navigation, search

This sample illustrates most of the features of the TPresentedScrollBox control to create an area with a scroll bar.

Location

You can find the PlatformScrollBox sample project at:

Description

The PlatformScrollBox sample shows an instance of TPresentedScrollBox filled with a grid of random controls, and provides a multi-view pane that allows you to configure at run-time many of the properties of the TPresentedScrollBox control and see how they affect the appearance and the behavior of the control.

How to Run the Sample

  1. Navigate to one of the locations given above and open:
    • Object Pascal: ScrollBoxPlatform.dproj.
    • C++: ScrollBoxDemoCpp.cbproj.
  2. Select the target platform.
  3. Press Template:Key+Template:Key+Template:Key or select Run > Run Without Debugging.

Files

File in Object Pascal File in C++ Contains

ScrollBoxPlatform.dproj
ScrollBoxPlatform.dpr

ScrollBoxDemoCpp.cbproj
ScrollBoxDemoCpp.cpp

The project itself.

MainForm.pas
MainForm.fmx

MainFrm.h
MainFrm.cpp
MainFrm.fmx

The main form.

How It Works

After you start this sample application, it displays the following form:

PlatformScrollBox.png

Use the controls in the left-side pane to change the appearance and the behavior of the scroll box at run time.

See Also