RectangleLock
From MultiCharts
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);