Vcl.Themes.TStyleManager.LoadFromResource
Delphi
class function LoadFromResource(Instance: HINST; const ResourceName: string): TStyleServicesHandle; overload;
class function LoadFromResource(Instance: HINST; const ResourceName: string;
ResourceType: PChar): TStyleServicesHandle; overload;
C++
__classmethod TStyleManager_TStyleServicesHandle __fastcall LoadFromResource(NativeUInt Instance, const System::UnicodeString ResourceName)/* overload */;
__classmethod TStyleManager_TStyleServicesHandle __fastcall LoadFromResource(NativeUInt Instance, const System::UnicodeString ResourceName, System::WideChar * ResourceType)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Themes.pas Vcl.Themes.hpp |
Vcl.Themes | TStyleManager |
Description
Loads a style from the specified resource.
Note that LoadFromResource does not automatically switch to the loaded style. To do that, call the SetStyle method.
Parameter | Meaning |
Instance
|
The instance handle of the loaded resource. |
ResourceName
|
The string associated with the resource. |
ResType
|
A string that identifies the type of resource. |