Show: Delphi C++
Display Preferences

FMX.Layouts.TCustomScrollBox

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Controls.TStyledControlFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTCustomScrollBox

Delphi

TCustomScrollBox = class(TStyledControl)

C++

class PASCALIMPLEMENTATION TCustomScrollBox : public Fmx::Controls::TStyledControl

Properties

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

Description

The base class for controls representing a scrolling area (scroll box).

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).

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, TFramedScrollBox, 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.
Note: When the size of the area occupied by the Content of a scroll box exceeds the control Size, and, therefore, all Content cannot be shown in the control at one moment, then you can use scroll bars to scroll the Content in the control. Notice that on Windows the scroll bar is shown by default. However, on OS X the scroll bar is not shown by default. On OS X, the scroll bar appears when you try to scroll the Content using the mouse wheel. To enforce the scroll bar to be shown by default, you can use the code like following:
ScrollBox1.AniCalculations.AutoShowing := false;

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance