_ScaleProperties, DefaultScalePosition, LockScale, ScaleProperties, ShowScale, ToggleScale
This function runs the Default Scale Position command.
Description
DefaultScalePosition();
Moves the scale bar into its default position.
This function runs the Lock Scale command.
Description
LockScale(
int Enabled
);
Locks/unlocks the scale bar in its position.
Enabled 1 is locked.
This function runs the Scale Properties command.
Interactive command to this function: View > Layers Properties > Scale Properties
Description
ScaleProperties( intScaleType
, dwordScaleColor
, dwordScaleBackground
, doubleLineWidth
, doubleGridDensity
, intAutoSize
);
This function sets the scale type, color, background, line width, grid density and autosize values.
Parameters
ScaleProperties(0, (255*256*256*256) + (256 * 255 *255), 0, 1, 10, 0); // red scale with transparent background
This function runs the View > Layers > Scale command.
Description
ToggleScale();
This function displays/hides the scale layer.
This function runs the View > Layers Properties > Scale Properties command.
Description
_ScaleProperties();
This function displays the Scale Properties dialog window.