ImageEn, unit iexLayerMView |
|
TImageEnLayerMView.LayerOptions
Declaration
property LayerOptions: TIELayerMViewOptions;
Description
Set 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 |
Note:
◼Use
ButtonParams to configure button layout and the
OnAddToolbarButtonImage event to customize the styling
◼Buttons will auto-hide if there is not enough space to show them
◼To prevent the background layer from being moved or deleted, see loProtectBackground of
LayerOptions
Default: [lvSelection, lvVisibilityButton, lvLockButton, lvDragOrdering]
// 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 ];
See Also
◼LayerOptions