API:FMX.Grid.TCustomGrid

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TCustomGrid = class(TScrollBox, IItemsContainer)

C++

class PASCALIMPLEMENTATION TCustomGrid : public Fmx::Layouts::TScrollBox

Properties

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

Description

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

FMX.Grid.TCustomGrid inherits from FMX.Layouts.TScrollBox. All content below this line refers to FMX.Layouts.TScrollBox.

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