+1 888 340 6572

RectangleSetStyle

From MultiCharts
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Assigns the specified style to a rectangle with the specified ID number; returns a value of 0 if the rectangle style was successfully assigned, and a value of -2 if the specified rectangle ID number is invalid.

Usage

RectangleSetStyle(ID,Style)
Parameters
ID - a numerical expression specifying the rectangle ID number
Style - a style constant or a numerical expression specifying the rectangle style as follows:
Tool_Solid 1 ______________________
Tool_Dashed 2 - - - - - - - - - - - - - - - - - - -
Tool_Dotted 3 ............................................
Tool_Dashed2 4 __ _ __ _ __ _ __ _ __ _ __
Tool_Dashed3 5 ___ _ _ ___ _ _ ___ _ _ ___
6 Invisible

Notes

A rectangle-specific ID number is returned by RectangleNew when the rectangle is created.

Example

Set the style of the rectangle with an ID number of 1 to Tool Dashed:

Value1=RectangleSetStyle(1, 2);

Set the style of the rectangle with an ID number of 2 to Tool Dashed:

Value1=RectangleSetStyle(2, Tool_Dashed);