FMX.Styles.TStyleStreaming.LoadFromResource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function LoadFromResource(Instance: HINST; const ResourceName: string; ResourceType: PChar): TFmxObject;

C++

__classmethod Fmx::Types::TFmxObject* __fastcall LoadFromResource(NativeUInt Instance, const System::UnicodeString ResourceName, System::WideChar * ResourceType);

Properties

Type Visibility Source Unit Parent
function public
FMX.Styles.pas
FMX.Styles.hpp
FMX.Styles TStyleStreaming

Description

Loads a style from the specified resource.

LoadFromResource returns a style object that can be set as the active style using the SetStyle method.

Note that LoadFromResource does not automatically switch to the loaded style. To do that, call the SetStyleFromFile method.

Parameter Meaning
Instance The instance handle of the loaded resource.
ResourceName The string associated with the resource.
ResourceType A string that identifies the type of resource.

See Also