Skip to main content

TdxRibbonSkinSelector.OnAddPalette Event

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

Declaration

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