A screen can be comprised of one or more layers. Layers are helpful for organizing objects on a screen into logical divisions. For example, a layer called "Pipes" can be created on which pipe graphics are placed. On top of that, you could create a layer called “Controls,” which might contain text boxes and buttons. Layers can be locked to avoid accidental changes, or made invisible altogether. By default, a screen has a single layer named “Default.” For simple screens, you might choose to put all objects on this layer and not perform any additional layer management.
The Default layer is always the bottom layer. Other layers are stacked based on in the order they are listed in the Layers Sheet; however, the order does not affect the stacking of individual objects. Objects are stacked based on the order they are added to TheView (see Adding Objects to TheView.)
A layer can be “locked.” This means that no new objects can be added to the layer, nor can the properties of any object on the layer be altered.
A layer can also be hidden. This means that none of the objects on the layer are visible in Run mode. You must use script to dynamically hide or show a layer in Run mode. See Scripting in CygNet Studio for an example of script to hide or show a layer using script.
The Insertion Layer is the layer to which objects are added. That is, it is the currently selected layer. You can change the insertion layer by selecting the layer name in the Layers Sheet box (Layers option on the Layout menu) or by selecting the layer name in the Layer drop-down menu on the Format bar.
When an object is added to TheView, it is added to the Insertion Layer. You can change the layer assignment by clicking the object’s Layer property.
The Layers Sheet is the interface for adding, deleting, and managing layers.
Open the Layers Sheet box by doing one of the following:
on the Layout toolbar.To Add a Layer
To Delete a Layer
To Lock/Unlock a Layer
To View/Hide a Layer