Vcl.Themes.TStyleManager.TryLoadFromResource
Delphi
class function TryLoadFromResource(Instance: HINST; const ResourceName: string; ResourceType: PChar; var Handle: TStyleServicesHandle): Boolean;
C++
__classmethod bool __fastcall TryLoadFromResource(NativeUInt Instance, const System::UnicodeString ResourceName, System::WideChar * ResourceType, TStyleManager_TStyleServicesHandle &Handle);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Themes.pas Vcl.Themes.hpp |
Vcl.Themes | TStyleManager |
Description
Loads a style from a resource without raising an exception.
TryLoadFromResource returns True if the style was successfully loaded, or False otherwise.
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. |
Handle
|
The handle of the loaded style. |