Skip to content

LoadLayoutFromRegistry - cCJCommandBarSystem

Loads a command bar system's layout from the registry

Type: Function
Return Data Type: Boolean

Parameters

Parameter Type Description
eLayout Integer Determines what is restored. Possible values are:ConstantMeaning
sKey String Name of the registry sub key

Syntax

Function LoadLayoutFromRegistry Integer eLayout String sKey Returns Boolean

Call Example

Get LoadLayoutFromRegistry eLayout sKey to BooleanVariable

Description

LoadLayoutFromRegistry loads a command bar system's layout from the registry. This message is sent by LoadEnvironment, which is automatically sent whenever a commandbar system is activated.

The eLayout parameter determines what information is used to restore a layout.

The sKey parameter determines the registry location under HKEY_CURRENT_USER. The data is actually loaded from a sub-key which is determined by the psLayoutSection property.

For example if

sKey = "SOFTWARE\Data Access Worldwide\DataFlex Applications\1\test" and 
psLayoutSection = "CommandBars"

the registry location will be:

"HKEY_CURRENT_USER\SOFTWARE\Data Access Worldwide\DataFlex Applications\1\test\CommandBars"

You will typically not augment this method. If you send this method you will mostly likely do so within an augmentation of LoadEnvironment.

See Also

SaveLayoutToRegistry | LoadLayoutFromXML | SaveLayouttoXML | peRestoreLayout | LoadEnvironment | SaveEnvironment

Return Value

Returns True if layout was successfully loaded from the registry