RectangleLock

From MultiCharts
Revision as of 15:51, 23 August 2021 by Svetlana MultiCharts (talk | contribs) (Created page with "Locks corresponding rectangle drawing so it cannot be moved manually; returns a value of 0 if the operation was performed successfully, and a value of -2 if the specified rect...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Locks corresponding rectangle drawing so it cannot be moved manually; returns a value of 0 if the operation was performed successfully, and a value of -2 if the specified rectangle ID number is invalid.

Usage

RectangleLock(ID,LogicalExpression)

Where:

ID - a numerical expression specifying the rectangle ID number
LogicalExpression - a logical value; True = Add and False = Remove

Notes

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

Example

Lock the rectangle with an ID number of 1:

Value1=RectangleLock(1,True);

Unlock the rectangle with an ID number of 2:

Value1=RectangleLock(2,False);