Skip to main content

dxSkinsUserSkinLoadFromStream(TStream,string) Method

Loads a skin from a specified stream.

Declaration

function dxSkinsUserSkinLoadFromStream(AStream: TStream; const ASkinName: string = ''): Boolean;

Parameters

Name Type
AStream TStream
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 dxSkinsUserSkinLoadFromStream or dxSkinsUserSkinLoadFromStreamByIndex function to load a skin from a stream containing skin data (such as .SKINRES files saved in the Skin Editor).

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

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

To load a skin from a file, call the dxSkinsUserSkinLoadFromFile or dxSkinsUserSkinLoadFromFileByIndex function.

See Also