ApplyLayout
Applies an Algosim IDE layout preset.
Syntax
-
ApplyLayout(layout)-
layoutis the name of an Algosim layout preset
-
-
ApplyLayout(fn)-
fnis the fully qualified file name to an Algosim layout preset file (*.as-layout)
-
-
ApplyLayout(xml)-
xmlis a textual representation of an Algosim layout preset XML file
-
Description
If layout is the name of an Algosim layout preset, such as “Standard IDE”, “Full IDE”, or “Console (only)”, then ApplyLayout(layout) applies this preset.
If fn is the fully-qualified path of an Algosim layout preset XML file (*.as-preset), then ApplyLayout(fn) reads this file and applies its layout.
If xml is a textual representation of an Algosim layout preset XML file, starting with either the XML declaration ("<?xml>") or the root element ("<layout>"), then ApplyPreset(xml) applies this layout.
The function returns success if the preset was successfully applied; otherwise, the function returns a failure.
Examples
ApplyLayout("Full IDE")
success
ApplyLayout("D:\My favourite layout.as-layout");
success
ApplyLayout("
")
success
Close all panels:
ApplyLayout("<layout/>")
success