FMX.Layouts.TScrollBox

From Appmethod Libraries
Jump to: navigation, search

FMX.Layouts.TCustomScrollBoxFMX.Controls.TStyledControlFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTScrollBox

Object Pascal

TScrollBox = class(TCustomScrollBox)

C++

class PASCALIMPLEMENTATION TScrollBox : public TCustomScrollBox

Properties

Type Visibility Source Unit Parent
class public
FMX.Layouts.pas
FMX.Layouts.hpp
FMX.Layouts FMX.Layouts

Description

Represents a scrolling area (a scroll box) in a FireMonkey form.

Use TScrollBox to create a scroll box in a FireMonkey form.

One use of a scroll box is to group multiple graphical controls (such as buttons, list boxes, edit boxes, radio buttons, and so on) under the same scrollable parent (the scroll box itself). In this way, a smaller form can contain a lot of graphical objects organized in a scrollable manner in order to occupy less space on a graphical user interface (GUI) rich in graphical controls.

Another use of scroll boxes is to create multiple scrolling areas (views) in a form. Views are common in commercial word-processor, spreadsheet, and project management applications.

Note: Do not anchor the children of a scroll layout (TScrollBox, TVertScrollBox, and so on) to the right and bottom edges. If the Anchors property of a scroll layout child is set to akBottom, akRight, or both, the child will continue to stretch to keep constant the distance to the layout edges when the layout content size is being calculated. The children of a scroll layout should be anchored only to the left and top edges.

See Also

Code Examples