Show: DelphiC++
Display Preferences

Vcl.Themes.TStyleManager.LoadFromResource

From XE2 API Documentation

Jump to: navigation, search

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(unsigned Instance, const System::UnicodeString ResourceName)/* overload */;
__classmethod TStyleManager_TStyleServicesHandle __fastcall LoadFromResource(unsigned 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.


See Also

Personal tools
Previous Versions
Translations