TdxCustomDockControl.UseDoubleBuffer Property
Specifies whether controls paint non-client elements directly to the window or via a memory bitmap.
Declaration
property UseDoubleBuffer: Boolean read; write;
Property Value
Type |
---|
Boolean |
Remarks
Painting of controls can be performed in two ways:
paint directly on the underlying window.
first paint the control to a memory bitmap and then copy it to the window (double buffering).
The second method is quicker and is commonly used to avoid flicker when repainting the control. However, it is more memory intensive. Thus, it is recommended to use double buffering when target computers have a sufficient amount of free memory.
The dock control property manages how controls paint their client areas. However, some dock controls can paint additional (non-client) elements, e.g. captions and tabs. Painting of these elements is controlled by the UseDoubleBuffer property. If its value is True, double buffering is used for painting these elements. The way control paint their client area is specified by their DoubleBuffered property.
The default value of the UseDoubleBuffer property is True for dock panels, tab containers, side containers and dock sites.