Name
SetLayerBorder -- enable/disable border for layer (V5.0)
Synopsis
SetLayerBorder(layer, enable[, color, size])
Function
This command can be used to enable or disable a border effect for the specified layer or layer group depending on whether the enable argument is set to True or False. In the third argument you can specify the color of the border as an ARGB color value. The optional size argument can be used to control the size of the border. The size value specifies the desired border size on each side of the layer.

You can also use the SetLayerStyle() function to enable/disable the border frame of a layer, or to modify the border's parameters.

Inputs
layer
layer or layer group to use
enable
whether to enable or disable the layer border frame (True means enable, False means disable)
color
optional: color that shall be used by the border in ARGB notation (defaults to #BLACK)
size
optional: size of border on each side (defaults to 2)
Example
EnableLayers
SetFillStyle(#FILLCOLOR)
Box(#CENTER, #CENTER, 320, 240, #RED)
SetLayerBorder(1, True, #WHITE, 10)
The code above draws a red box to the center of the display and then adds a 10 pixel white border frame to it.

Show TOC