StyleManager#

Qualified name: delphivcl.StyleManager

class StyleManager#

Bases: Object

Handles styles-related operations. Use TStyleManager to:

Register and unregister style classes. Set the active style. Load styles from files or resources. Retrieve styles and their descriptors. Replace and retrieve the style engine.

Methods

CheckSysClassName

Embarcadero Technologies does not currently have any additional information.

GetStyle

Embarcadero Technologies does not currently have any additional information.

HandleMessage

Handles a message from a control.

Initialize

Initializes data about styles and style engines.

IsCustomStyleAvailable

Embarcadero Technologies does not currently have any additional information.

IsSystemStyleDefault

Embarcadero Technologies does not currently have any additional information.

IsValidStyle

Checks whether a file represents a valid style.

LoadDesigningStyle

Embarcadero Technologies does not currently have any additional information.

LoadDesigningStyles

Embarcadero Technologies does not currently have any additional information.

LoadFromFile

Loads a style from the specified file.

LoadFromResource

Loads a style from the specified resource.

Notification

Notifies the style engine of an event that occured.

RegisterStyle

Registers the instance of a style specified by the Style parameter.

RegisterStyleClass

Registers a style class with extension, description, and resource type.

RemoveDesigningStyle

Embarcadero Technologies does not currently have any additional information.

ResetDesigningStyles

Embarcadero Technologies does not currently have any additional information.

SetDesigningStyle

Embarcadero Technologies does not currently have any additional information.

SetStyle

Sets the active style by name, instance, or handle.

TryLoadFromResource

Loads a style from a resource without raising an exception.

TrySetDesigningStyle

Embarcadero Technologies does not currently have any additional information.

TrySetStyle

Sets the style specified by name as the active style, without raising an exception.

UnInitialize

Uninitializes data about styles and style engines.

UnRegisterStyle

Embarcadero Technologies does not currently have any additional information.

UnRegisterStyleClass

Unregisters a style class specified by the StyleClass parameter.

UnRegisterStyleEngine

Unregisters the style engine specified by the AEngineClass parameter.

Attributes

ActiveStyle

Returns the current style.

DesignerStyle

<Delphi indexed property DesignerStyle of type TStyleManager at 21141267830>

Style

<Delphi indexed property Style of type TStyleManager at 211412676B0>

StyleDescriptor

<Delphi indexed property StyleDescriptor of type TStyleManager at 21141267770>

StyleNames

Provides access to the VCL style names.

ActiveStyle#

Returns the current style.

CheckSysClassName(AClassName: string) Boolean#

Embarcadero Technologies does not currently have any additional information.

DesignerStyle#

<Delphi indexed property DesignerStyle of type TStyleManager at 21141267830>

static GetStyle(Name: string) CustomStyleServices#

Embarcadero Technologies does not currently have any additional information.

HandleMessage(Control: WinControl, Message: Message, DefWndProc: WndMethod) Boolean#

Handles a message from a control. HandleMessage sends the message received from a control to the style engine.

Parameter

Meaning

Control

The component that passes the message.

Message

The message that is passed to the engine.

DefWndProc

The default window procedure to be called for the message.

Initialize()#

Initializes data about styles and style engines.

Note: This function is reserved for internal use only. Do not call it directly.

IsCustomStyleAvailable(AControl: Control) Boolean#

Embarcadero Technologies does not currently have any additional information.

IsSystemStyleDefault(AControl: Control) Boolean#

Embarcadero Technologies does not currently have any additional information.

IsValidStyle(FileName: string) Boolean#

Checks whether a file represents a valid style. IsValidStyle returns True if the file specified by FileName is recognized as a valid style. The second overload of IsValidStyle returns, in addition, information about the style.

Parameter

Meaning

FileName

The file name to be verified whether it represents a valid style.

StyleInfo

A record that contains the information about the style. Checks whether a file represents a valid style. IsValidStyle returns True if the file specified by FileName is recognized as a valid style. The second overload of IsValidStyle returns, in addition, information about the style.

Parameter

Meaning

FileName

The file name to be verified whether it represents a valid style.

StyleInfo

A record that contains the information about the style.

LoadDesigningStyle(FileName: string) StyleManager.TStyleServicesHandle#

Embarcadero Technologies does not currently have any additional information.

LoadDesigningStyles(FileNames: Array<System.string>)#

Embarcadero Technologies does not currently have any additional information.

LoadFromFile(FileName: string) StyleManager.TStyleServicesHandle#

Loads a style from the specified file. Note that LoadFromFile does not automatically switch to the loaded style. To do that, call the SetStyle method.

LoadFromResource(Instance: NativeUInt, ResourceName: string) StyleManager.TStyleServicesHandle#

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. 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.

Notification(Operation: CustomStyleEngine.TStyleEngineNotification, Data: Pointer)#

Notifies the style engine of an event that occured.

Parameter

Meaning

Operation

The action that is performed.

Data

The data on which the operation is executed.

RegisterStyle(Style: CustomStyleServices)#

Registers the instance of a style specified by the Style parameter.

RegisterStyleClass(Extension: string, Description: string, ResourceType: string, StyleClass: CustomStyleServicesClass)#

Registers a style class with extension, description, and resource type.

Parameter

Meaning

Extension

A string that specifies the extension used with the style files.

Description

A string that specifies a description of the style.

ResourceType

A string associated with the resource type.

StyleClass

Specifies the style class to be registered. Registers a style class with extension, description, and resource type.

Parameter

Meaning

Extension

A string that specifies the extension used with the style files.

Description

A string that specifies a description of the style.

ResourceType

A string associated with the resource type.

StyleClass

Specifies the style class to be registered.

RemoveDesigningStyle(Name: string)#

Embarcadero Technologies does not currently have any additional information.

ResetDesigningStyles()#

Embarcadero Technologies does not currently have any additional information.

SetDesigningStyle(Name: string)#

Embarcadero Technologies does not currently have any additional information. Embarcadero Technologies does not currently have any additional information.

SetStyle(Name: string)#

Sets the active style by name, instance, or handle.

Parameter

Meaning

Name

The name of the style to be set as the active style.

Style

A style instance to be set as the active style.

Handle

The handle of the style to be set as the active style, as returned by the LoadFromFile or LoadFromResource method. Sets the active style by name, instance, or handle.

Parameter

Meaning

Name

The name of the style to be set as the active style.

Style

A style instance to be set as the active style.

Handle

The handle of the style to be set as the active style, as returned by the LoadFromFile or LoadFromResource method. Sets the active style by name, instance, or handle.

Parameter

Meaning

Name

The name of the style to be set as the active style.

Style

A style instance to be set as the active style.

Handle

The handle of the style to be set as the active style, as returned by the LoadFromFile or LoadFromResource method.

Style#

<Delphi indexed property Style of type TStyleManager at 211412676B0>

StyleDescriptor#

<Delphi indexed property StyleDescriptor of type TStyleManager at 21141267770>

StyleNames#

Provides access to the VCL style names.

TryLoadFromResource(Instance: NativeUInt, ResourceName: string, ResourceType: PWideChar, Handle: StyleManager.TStyleServicesHandle) Boolean#

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.

TrySetDesigningStyle(Name: string, ShowErrorDialog: Boolean) Boolean#

Embarcadero Technologies does not currently have any additional information.

TrySetStyle(Name: string, ShowErrorDialog: Boolean) Boolean#

Sets the style specified by name as the active style, without raising an exception. TrySetStyle returns True if the style was successfully set as the active style, and False otherwise.

Parameter

Meaning

Name

A string that specifies the name of the style to be set as active.

ShowErrorDialog

Specifies whether an error dialog box is shown if the style cannot be set as the active style.

UnInitialize()#

Uninitializes data about styles and style engines.

Note: This function is reserved for internal use only. Do not call it directly.

UnRegisterStyle(Style: CustomStyleServices)#

Embarcadero Technologies does not currently have any additional information.

UnRegisterStyleClass(StyleClass: CustomStyleServicesClass)#

Unregisters a style class specified by the StyleClass parameter.

UnRegisterStyleEngine(AEngineClass: CustomStyleEngineClass)#

Unregisters the style engine specified by the AEngineClass parameter.