TdxRibbonSkinSelectorAddPaletteEvent Type
The procedural type for skin palette list population events in a Ribbon Skin Selector component.
Declaration
TdxRibbonSkinSelectorAddPaletteEvent = procedure(Sender: TObject; const ASkinName: string; const APaletteName: string; var AAccepted: Boolean) of object;
Parameters
Name | Type | Description |
---|---|---|
Sender | TObject | The Ribbon Skin Selector component that raised the skin palette population event. You need to cast the |
ASkinName | string | The name of the current skin whose palette list is being populated. Note Only vector skins can switch between palettes. |
APaletteName | string | The name of the new palette that the Ribbon Skin Selector is about to add to the list of palettes available for the current skin ( |
AAccepted | Boolean |
|
Remarks
A palette list population event occurs every time a Ribbon Skin Selector is about to add a palette to the list of palettes available for selection. You can assign False
to the AAccepted
parameter within a TdxRibbonSkinSelectorAddPaletteEvent
handler to exclude certain palettes for a skin based on custom conditions.
Direct TdxRibbonSkinSelectorAddPaletteEvent Type References
The TdxRibbonSkinSelector component’s OnAddPalette event references the TdxRibbonSkinSelectorAddPaletteEvent
procedural type.