Declaration
property ScaleLocking: TIEScaleLocking;
Description
Specify whether aspects of the layer are affected by
zooming of the view.
Prevents sizing of some attributes of the layer when zoom is not 100%
Value | Description |
ieslBorder | Border and line widths are not scaled |
ieslFont | Text is not scaled (does not apply to rich text layers) |
ieslSize | The layer itself is not scaled (implies both ieslBorder and ieslFont) |
Default: []
// Layer size is always the same regardless of zooming
ImageEnView1.CurrentLayer.ScaleLocking := [ieslSize];
ImageEnView1.Update();
// Text size and border widths do not change even if the user zooms the view
ImageEnView1.CurrentLayer.ScaleLocking := [ieslBorder, ieslFont];
ImageEnView1.Update();
// Zooming the view will scale the layer
ImageEnView1.CurrentLayer.ScaleLocking := [];
ImageEnView1.Update();