ImageEn, unit iexLayers

TIELayer.VisibleBox

TIELayer.VisibleBox


Declaration

property VisibleBox: boolean;


Description

Display a selection box around the layer and grips to enable sizing (if Locked is false).
If disabled, there is no visual indication that a layer is selected.

A selected text layer with VisibleBox enabled:


Four selected layers with VisibleBox enabled:



Default: True

See also: LayersDrawBox

Note: Boxes are only drawn when LayerEditingMode is enabled, or MouseInteractLayers includes one of: mlMoveLayers, mlResizeLayers or mlRotateLayers


Examples

// Toggle box of current layer
ImageEnView1.CurrentLayer.VisibleBox := not ImageEnView1.CurrentLayer.VisibleBox;
ImageEnView1.Update();

// Make background layer selectable and sizeable
ImageEnView1.Layers[0].VisibleBox := True;
ImageEnView1.Layers[0].Selectable := True;
ImageEnView1.Layers[0].Locked     := False;
ImageEnView1.Update();


See Also

SetLayersBoxStyle
SetLayersGripStyle
LayersDrawBox
OnDrawLayerBox
OnDrawLayerGrip