SetFormStyle(style[, t])
SetFormStyle(#SHADOW, color, distance, direction) SetFormStyle(#BORDER, color, size)
The style must be one of the following predefined constants:
#NORMAL
#ANTIALIAS
#SHADOWcolor argument specifies the shadow color.
This color can be either in RGB or ARGB
notation. Shadow transparency is fully supported. The distance argument specifies
the distance of the shadow from the main form in pixels. The direction argument
specifies the direction of the shadow. This must be one of the
directional constants. Please note that #SHADOW
is not supported for the fill style #FILLNONE if layers are disabled.
#BORDERcolor argument specifies the
color for the border. This color can either be in RGB or
ARGB notation. Border transparency is fully supported.
The size argument specifies the desired thickness of the border in pixels.
Please note that #BORDER is not supported for the fill style #FILLNONE if layers
are disabled. Before Hollywood 9.0, this style was called #EDGE.
To combine multiple form styles in a single call simply bit-or them
with another, e.g. a call to SetFormStyle(#SHADOW|#BORDER) will
enable the shadow and border form styles. Obviously, the style #NORMAL
is mutually exclusive and cannot be combined with any other style.
Starting with Hollywood 9.0, SetFormStyle() uses a new syntax
that accepts an optional table argument that supports the
following tags:
ShadowDir:#SHADOW style has been set (see above). (V9.0)
ShadowColor:#SHADOW style has been set (see above). (V9.0)
ShadowSize:#SHADOW style has been set (see above). (V9.0)
BorderColor:#BORDER style has been set (see above). (V9.0)
BorderSize:#BORDER style has been set (see above). (V9.0)
Please note that the Line() command does not support the form styles
#SHADOW and #BORDER. It only recognizes the style #ANTIALIAS.
SetFormStyle(#ANTIALIAS)The function call above enables anti-aliased forms.
SetFormStyle(#SHADOW, {ShadowColor = ARGB(128, $939393),
ShadowSize = 16, ShadowDir = #SHDWSOUTHEAST})
The above code enables a half-transparent grey shadow which will be
positioned 16 pixels to the south-east of the main form.