FMX.BufferedLayout.TBufferedLayout

From RAD Studio API Documentation
Jump to: navigation, search

FMX.BufferedLayout.TCustomBufferedLayoutFMX.Layouts.TLayoutFMX.Controls.TControlFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTBufferedLayout

Delphi

TBufferedLayout = class(TCustomBufferedLayout)

C++

class PASCALIMPLEMENTATION TBufferedLayout : public TCustomBufferedLayout

Properties

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

Description

For a better understanding of the TBufferedLayout, let’s meet the definition of a layout.

A layout is a container for other graphical objects when you need to organize multiple graphical controls under the same parent. For instance, you can use these layouts when you need to create rich FireMonkey applications with many graphical controls that are grouped on the same layer. You can set the visibility of all the controls on a layout at once by affecting the visibility of the layout.

In the case of TBufferedLayout control, it stores its graphical content (including the graphical content of its internal controls) in a memory buffer, so in case there is no change, it can be repainted by displaying the buffer rather than repainting each internal control. In many cases, the net effect is a faster refresh of the UI of the control.

Warning: The use of TBufferedLayout on large surfaces may have a negative consequence in terms of memory usage, and that is why this behavior is not part of the core library.