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

TdxRibbonSkinSelector.OnAddPalette Event

Allows you to exclude certain palettes from the list of available skin palettes.

#Declaration

Delphi
property OnAddPalette: TdxRibbonSkinSelectorAddPaletteEvent read; write;

#Remarks

You can handle the OnAddPalette event to exclude certain palettes from the list of palettes available for the active vector skin. Bitmap-based skins have no palettes.

#Event Occurrence

The OnAddPalette event occurs multiple times during a palette list population process – every time a new palette is about to be added to the list of palettes available for the active vector skin. The Ribbon Skin Selector populates the palette gallery every time another vector skin becomes active.

#Event Parameters

ASkinName and APaletteName parameters allow you to identify the name of the active skin and the name of the palette that is about to be added to the list of available palettes. You can assign False to the AAccepted parameter within an OnAddPalette event handler to prevent the current palette from being added to the list.

Refer to the TdxRibbonSkinSelectorAddPaletteEvent procedural type description for detailed information on all parameters accessible within an OnAddPalette event handler.

See Also