Skip to main content

dxSkinsUserSkinLoadFromStreamByIndex(TStream,Integer) Method

Loads a skin from a specified stream by its index.

Declaration

function dxSkinsUserSkinLoadFromStreamByIndex(AStream: TStream; ASkinIndex: Integer = 0): Boolean;

Parameters

Name Type
AStream TStream
ASkinIndex Integer

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

AStream specifies the source stream (the content of a SKINRES file created in the Skin Editor, and then loaded to AStream).

ASkinIndex specifies the skin index within the storage. If ASkinIndex is not specified the function loads the first skin from the storage.

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

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

See Also