Override GoView.LimitDocScale


#1

Walter,
How do I override GoView.LimitDocScale, set scale limits other than 0.01f and 10.0f, do you have a example?
Wendy


#2

Here’s GoView’s definition:
public virtual float LimitDocScale(float s) {
if (s < 0.01f)
s = 0.01f;
if (s > 10.0f)
s = 10.0f;
return s;
}


#3

Walter,
Thanks a lot!
Wendy


#4

Walter,
My new LimitDocScale works!
public override float LimitDocScale(float s)
{
float minScale = 0.1f;
float maxScale = 15.0f;
if (s < minScale)
s = minScale;
if (s > maxScale)
s = maxScale;
return s;
}