TdxRibbonSkinSelector.LoadFromFile(string,string,string) Method
Loads one or multiple skins from a SKINRES file.
Declaration
procedure LoadFromFile(const AFileName: string; const ASkinName: string = ''; const APaletteName: string = '');
Parameters
Name | Type | Description |
---|---|---|
AFileName | string | The absolute or relative path to the source SKINRES file with one or multiple skins. |
ASkinName | string | Optional. The target skin name in the source file ( If this parameter is omitted, the procedure loads all skins and corresponding vector skin palettes from the source file. |
APaletteName | string | Optional. The target palette name for the vector skin whose name is passed as the If this parameter is omitted, the procedure loads all palettes for the target vector skin from the source file ( Note This parameter is ignored if the target skin is bitmap-based. |
Remarks
Call the LoadFromFile
procedure to clear the list of skins available in the Ribbon Skin Selector and repopulate it with skins from a SKINRES file. A LoadFromFile
procedure call raises one OnAddSkin event per every loaded skin.