Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxBarImageOptions.CacheGlyphs Property

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

#Declaration

Delphi
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