<< Click to Display Table of Contents >> Navigation: Reference (Scripting) > Docklight Script Commands - The DL Object > Methods (Advanced) > SetWindowLayout |
Controls the Docklight main window appearance, similar to the menu Tools > Minimize/Restore... and the F12 Hot Keys.
Syntax
DL.SetWindowLayout [ layout ]
The SetWindowLayout method syntax has these parts:
Part |
Description |
layout |
Optional String argument. A combination of the following letters: S - sequence area visible D - doc/script area visible |
Remarks
SetWindowLayout is useful when you have a ready-to-use script/project and the end user should not be distracted by details of your Docklight project and script definitions. By hiding some areas of the Docklight main window, you can put the focus on the Communication Window output, or a SetUserOutput display you created.
Example
' Example SetWindowLayout
' show communication window only. No doc/script area, no Send/Receive Sequence area
DL.SetWindowLayout ""
DL.Pause 4000
' show communication window and Send/Receive sequence lists, but no doc/script area
DL.SetWindowLayout "S"
DL.Pause 4000
' show everything (default, same as <layout> = "SD")
DL.SetWindowLayout