SetScaleLink

NOTE:  This method was deprecated in V4-0.  The recommended method to set the Scale to Link is via SetPenAttribute specifying an attribute of "SCALESTRATEGY".

 

long SetScaleLink (long CurrentPen, long LinkPen, float Multiplier, float Offset);

 

Available (from release):

 

stOCX (V2-01), stPro Automation (V2-01)

 

Return Value:

 

Nonzero if successful otherwise 0.

 

Note:  The stPro automation interface does not return a value for this method.

Parameters:

 

Name:

Description:

CurrentPen

The handle of the pen whose minimum and maximum scale values are to be derived from the Link pen.

LinkPen

The handle of the Link pen.

Multiplier

The multiplier to apply to the scale values of the Link pen.

Offset

The offset to apply to the scale values of the Link pen.

 

Remarks:

 

Call this function to link the scales of one pen to another.

 

Tip:  If the LinkPen scales are to be preserved 'as is' then ensure that the Multiplier is set  to 1 and the Offset is set to 0.

Note:  When calculating the scales for the CurrentPen the Multiplier is applied before the Offset.