RectangleSetStyle

From MultiCharts
Jump to navigation Jump to search

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);