Table of Contents

TTMSFNCStylesManager.LoadStyleFromResource Method

Loads a JSON style definition from the named application resource and applies it to the given component list.

API unit family: TMSFNCStyles Declaring type: TTMSFNCStylesManager

Overloads

Overload 1

Loads a JSON style definition from the named application resource and applies it to the given component list.

procedure LoadStyleFromResource(AResourceName: string; AComponents: TTMSFNCStylesManagerComponentArray); overload; virtual;

Parameters

Name Description
AResourceName The resource identifier of the JSON style.
AComponents The array of components to style.

Overload 2

Loads a JSON style definition from the named application resource and applies it to all registered components.

procedure LoadStyleFromResource(AResourceName: string); overload; virtual;

Parameters

Name Description
AResourceName The resource identifier of the JSON style.