Name
SetFormStyle -- set the form style for graphics primitives (V2.5)
Synopsis
SetFormStyle(style, ...)
SetFormStyle(#SHADOW, color, distance, direction)
SetFormStyle(#EDGE, color, size)
Function
This function can be used to configure the drawing style for the commands of the graphics primitives library. This function affects the look of the Arc(), Box(), Circle(), Ellipse(), Line(), and Polygon() commands.

The style must be one of the following pre-defined constants:

#NORMAL
This resets the form style to the default style.

#ANTIALIAS
This sets the form style to anti-alias; the graphics primitives will be drawn with anti-aliasing now.

#SHADOW
This sets the form style to shadow. The forms will be drawn with a shadow with this style. The color 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.

#EDGE
This sets the form style to bordered. A border of the specified size will be drawn around the form with this style. The color 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 #EDGE is not supported for the fill style #FILLNONE if layers are disabled.

Note that multiple form styles can be combined but you must call SetFormStyle() individually for every form style you want to set. For example, if you want Hollywood to add a shadow and a border to its graphics primitives you will have to call SetFormStyle() twice - first to set the #SHADOW style and a second time to set the #EDGE style.

Please note that the Line() command does not support the form styles #SHADOW and #EDGE. It only recognizes the style #ANTIALIAS.

Inputs
style
special style constant (see list above)
...
further optional arguments depend on the style passed as argument one (see above)
Example
SetFormStyle(#ANTIALIAS)
The function call above enables anti-aliased forms.


SetFormStyle(#SHADOW, ARGB(128, $939393), 16, #SHDWSOUTHEAST)
The above code enables a half-transparent grey shadow which will be positioned 16 pixels to the south-east of the main form.

Show TOC