StyleStreaming

Qualified name: delphifmx.StyleStreaming

class StyleStreaming

Bases: Object

Embarcadero Technologies does not currently have any additional information.

Methods

CanLoadFromFile

Loads a style from the specified file without raising an exception.

CanLoadFromResource

Loads a style from the specified resource without raising an exception.

CanLoadFromStream

Loads a style from the specified stream without raising an exception.

DefaultIsSupportedPlatformTarget

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.

LoadFromStream

Loads a style from the specified stream.

SameStyle

Embarcadero Technologies does not currently have any additional information.

SaveToStream

Embarcadero Technologies does not currently have any additional information.

SetDefaultContainerClass

Embarcadero Technologies does not currently have any additional information.

SetSupportedPlatformHook

Embarcadero Technologies does not currently have any additional information.

TryLoadStyleDescription

This method tries to parse the style file and read the style description.

Attributes

ClassName

Returns the TObject.ClassName

CanLoadFromFile(FileName: str) bool

Loads a style from the specified file without raising an exception. CanLoadFromFile searches for the style specified by FileName. CanLoadFromFile returns True if the style is successfully loaded, and False otherwise.

CanLoadFromResource(ResourceName: str, ResourceType: PWideChar) bool

Loads a style from the specified resource without raising an exception. In the first signature CanLoadFromResource searches for the specified ResourceName with type ResourceType in the instace handle indicated by Instance. In the second signature CanLoadFromResource internally calls EnumModules in order to search for ResourceName in all modules of the application. CanLoadFromResource returns True if the style is successfully loaded, and False otherwise. Loads a style from the specified resource without raising an exception. In the first signature CanLoadFromResource searches for the specified ResourceName with type ResourceType in the instace handle indicated by Instance. In the second signature CanLoadFromResource internally calls EnumModules in order to search for ResourceName in all modules of the application. CanLoadFromResource returns True if the style is successfully loaded, and False otherwise.

CanLoadFromStream(AStream: Stream) bool

Loads a style from the specified stream without raising an exception. CanLoadFromStream searches for the style specified by AStream. CanLoadFromStream returns True if the style is successfully loaded, and False otherwise.

static DefaultIsSupportedPlatformTarget(PlatformTarget: str) bool

Embarcadero Technologies does not currently have any additional information.

LoadFromFile(FileName: str) FmxObject

Loads a style from the specified file. LoadFromFile returns a style object that can be set as the active style using the SetStyle method. Note that LoadFromFile does not automatically switch to the loaded style. To do that, call the SetStyleFromFile method.

LoadFromResource(Instance: int, ResourceName: str, ResourceType: PWideChar) FmxObject

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.

LoadFromStream(AStream: Stream) FmxObject

Loads a style from the specified stream. LoadFromStream returns a style object that can be set as the active style using the SetStyle method. Note that LoadFromStream does not automatically switch to the loaded style. To do that, call the SetStyleFromFile method.

static SameStyle(Style1: FmxObject, Style2: FmxObject) bool

Embarcadero Technologies does not currently have any additional information.

SaveToStream(Style: FmxObject, AStream: Stream, Format: StyleFormat) None

Embarcadero Technologies does not currently have any additional information.

SetDefaultContainerClass(AClass: FmxObjectClass) None

Embarcadero Technologies does not currently have any additional information.

SetSupportedPlatformHook(AHook: Callable[[str], bool]) None

Embarcadero Technologies does not currently have any additional information.

TryLoadStyleDescription(Stream: Stream, Description: StyleDescription) bool

This method tries to parse the style file and read the style description. The TStyleDescription object specified by Description should be destroyed by the caller.