Skip to main content

TdxBarImageOptions.CacheGlyphs Property

Specifies whether caching of bar item images and glyphs is enabled.

Declaration

property CacheGlyphs: Boolean read; write; default True;

Property Value

Type Default
Boolean True

Remarks

By default, a bar manager caches bar item images and glyphs to improve performance. Once an image or glyph is displayed for a specific state of a bar item, a corresponding bitmap is added to the bar manager’s cache. Later, if the bar item in this state needs to be painted, the bar manager’s cached bitmap is painted for this bar item.

You have to disable caching if you custom paint images using the procedure assigned via the cxGraphics.CustomDrawImageProc variable, if this procedure satisfies at least one of the following conditions:

  • It does not use alpha blending.

  • It paints 32-bit images faster than the caching mechanism.

To disable caching, set the CacheGlyphs property to False.

The default value of the CacheGlyphs property is True.

See Also