TiComponent.CachedDrawing

TiComponent

Used to enable or disable the Cached Drawing feature of a component.

property
CachedDrawing : Boolean;

Description

Use the CachedDrawing property to specify whether the component uses Cached Drawing to speed up painting of the control.

This feature utilizes a cached bitmap of the background behind the control when enabled to minimize the performance penalty. When CachedDrawing is TRUE, there is no performance penalty during a repaint because the control uses the background cache when drawing the control instead of redrawing the background. When CachedDrawing is FALSE, the control redraws the background during every repaint.

It is recommended that this property always be set to TRUE (which is the default) unless your development environment or control container has problems supporting background caching. We have currently only identified Microsoft Internet Explorer (all versions, including Version 3.x-6.x) as needing this property being set to FALSE.

Example

Delphi

iComponent.CachedDrawing := True;

C++ Builder

iComponent->CachedDrawing = True;

Note: not all components support this property or feature.

Contents | Index | Previous | Next