Skip to main content

dxSkinsUserSkinLoadFromFile(string,string) Method

Loads a skin from a specified file.

Declaration

function dxSkinsUserSkinLoadFromFile(const AFileName: string; const ASkinName: string = ''): Boolean;

Parameters

Name Type
AFileName string
ASkinName string

Returns

Type
Boolean

Remarks

If the skin controller’s SkinName property is set to ‘UserSkin’, you need to provide a skin to be applied by this skin controller. To accomplish this, call the dxSkinsUserSkinLoadFromFile or dxSkinsUserSkinLoadFromFileByIndex function to load a skin from a .SKINRES file saved in the Skin Editor.

The AFileName parameter specifies the source file. By default, the function loads the first skin stored within this file. You can specify which particular skin should be loaded by passing its name as the ASkinName parameter.

The dxSkinsUserSkinLoadFromFile function returns False, if the specified skin doesn’t exist or cannot be loaded.

To load a skin from a stream, call the dxSkinsUserSkinLoadFromStream or dxSkinsUserSkinLoadFromStreamByIndex function.

See Also