ImageEn, unit iexLayerMView

TIELayerMViewOptions


Declaration

TIELayerMViewOptions = set of (lvSelection, lvVisibilityButton, lvLockButton, lvMaskButton, lvDragOrdering, lvDragDelete, lvHideBlankBackground);


Description

Options to control layer behavior:
Value Description
lvSelection If included, selecting thumbnails will select the relevant layer in the attached ImageEnView
lvVisibilityButton Displays a button allowing you to show or hide a layer
lvLockButton Displays a button allowing you to lock or unlock a layer
lvMaskButton Displays a button allowing you to set a layer as a mask or remove the mask from a layer. Note: When this option is used, Masks are not shown in the control
lvDragOrdering If included, thumbnails can be dragged to rearrange the order of layers
lvDragDelete If included, thumbnails can be dragged outside of the control to remove them (also, by clicking the Delete key). Also see: loPreventLayerDelete
lvHideBlankBackground If included, Layer 0 (background layer) is not included if its size is less than 1x1


Examples

// Prevent selection of layers by clicking items in this control
IELayerMView1.LayerOptions := IELayerMView1.LayerOptions - [ lvSelection ];

// Don't show a button to make a layer visible/not-visible
IELayerMView1.LayerOptions := IELayerMView1.LayerOptions - [ lvVisibilityButton ];

// Don't show a button to lock/unlock a layer
IELayerMView1.LayerOptions := IELayerMView1.LayerOptions - [ lvLockButton ];

// Disable dragging of thumbnails to rearrange layers
IELayerMView1.LayerOptions := IELayerMView1.LayerOptions - [ lvDragOrdering ];

// Enable dragging of thumbnails to rearrange layers and remove layers
IELayerMView1.LayerOptions := IELayerMView1.LayerOptions + [ lvDragOrdering, lvDragDelete ];