Author |
Topic |
|
WIZZs
Netherlands
23 Posts |
Posted - Nov 20 2018 : 03:11:25
|
Hi,
Is there a way to keep the background layer inside a TImageEnLayerMView (that shows all layers from a TImageEnView) always in the background?
Users shouldn't be able to select it nore drag it to another position inside the TImageEnLayerMView. Also it shouldn't be possible to drag other layers below the background layer.
Currently I've set LayerOrder to ieloBackgroundFirst so the background layer is always at the top, but it would be nice if this solution would also work if LayerOrder is set differently.
Thanks. |
|
xequte
38616 Posts |
Posted - Nov 20 2018 : 17:46:23
|
Hi
In 8.1.2 you will be able to use:
IELayerMView1.LayerOptions := IELayerMView1.LayerOptions + [ lvProtectBackground ];
Nigel Xequte Software www.imageen.com
|
|
|
WIZZs
Netherlands
23 Posts |
Posted - Nov 20 2018 : 22:21:57
|
Great Nigel, do you already have a releasedate for ImageEn 8.1.2? |
|
|
xequte
38616 Posts |
Posted - Nov 21 2018 : 16:12:31
|
As soon as Rio is released.
Nigel Xequte Software www.imageen.com
|
|
|
wesleybobato
Brazil
367 Posts |
|
xequte
38616 Posts |
Posted - Nov 21 2018 : 19:31:12
|
Yes, we'll be releasing 8.1.2 next week.
Nigel Xequte Software www.imageen.com
|
|
|
WIZZs
Netherlands
23 Posts |
Posted - Nov 21 2018 : 23:28:45
|
Perfect timing. Thanks! |
|
|
wesleybobato
Brazil
367 Posts |
Posted - Nov 22 2018 : 10:22:58
|
Now to get everything perfect! we need to support Nigel with Firemonkey :)
Kind regards. |
|
|
WIZZs
Netherlands
23 Posts |
Posted - Nov 27 2018 : 16:46:02
|
Hi,
I've tested: IELayerMView1.LayerOptions := [lvSelection, lvVisibilityButton, lvLockButton, lvDragOrdering, lvProtectBackground]; IELayerMView1.LayerOrder := ieloBackgroundFirst;
Setting lvProtectBackground still allows dragging the background down the list of layers and place it on top of other layers. Dragging other layers above the background layer when it is at the top of the list isn't possible (which is good).
If LayerOrder = ieloTopFirst, than dragging inside the LayerMView1 is even more of a mess. Here I need to drag layers an additional position and the background layer isn't protected either.
Also I had hoped that ONLY for a protected background layer Visibility and Lock buttons would ALWAYS be hidden (Visibility = TRUE, Locked = TRUE). User can't change is (as it is protected). This makes more sence to the enduser. Other layers will follow LayerOptions settings. It would even be fine for me if a protected background layer wasn't shown in the LayerMView1 at all (but that is me).
Thanks. |
|
|
xequte
38616 Posts |
Posted - Nov 28 2018 : 00:01:38
|
Hi
What version of Delphi are you using?
Nigel Xequte Software www.imageen.com
|
|
|
WIZZs
Netherlands
23 Posts |
Posted - Nov 28 2018 : 00:23:25
|
I'm on Delphi 10.1 Berlin Enterprise |
|
|
xequte
38616 Posts |
Posted - Nov 28 2018 : 15:22:53
|
OK, I have an update available, including the hiding of buttons on Layer 0. Please email me for the source.
Nigel Xequte Software www.imageen.com
|
|
|
WIZZs
Netherlands
23 Posts |
Posted - Nov 29 2018 : 02:12:57
|
Hi Nigel, I've tested the updated source 8.1.3. beta(1) and it works great.
One little remark: When LayerOrder = ieloBackgroundFirst and you drag a layer past the background layer a Stopsign-cursor is shown. But when LayerOrder = ieloTopFirst it doesn't do that. For my application it's perfectly ok now. I understand why you want to move this protection to the properties of TImageEnView.
Thank you very much. |
|
|
xequte
38616 Posts |
Posted - Nov 29 2018 : 23:59:17
|
Hi
In the current update, it only changes to a stop cursor when dragging outside the control.
Nigel Xequte Software www.imageen.com
|
|
|
WIZZs
Netherlands
23 Posts |
Posted - Nov 30 2018 : 06:28:21
|
Oh yes, that will be it. Thank you. |
|
|
|
Topic |
|