ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Keep background layer always in background
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

WIZZs

Netherlands
23 Posts

Posted - Nov 20 2018 :  03:11:25  Show Profile  Reply
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

38180 Posts

Posted - Nov 20 2018 :  17:46:23  Show Profile  Reply
Hi

In 8.1.2 you will be able to use:

IELayerMView1.LayerOptions := IELayerMView1.LayerOptions + [ lvProtectBackground ];

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

WIZZs

Netherlands
23 Posts

Posted - Nov 20 2018 :  22:21:57  Show Profile  Reply
Great Nigel, do you already have a releasedate for ImageEn 8.1.2?
Go to Top of Page

xequte

38180 Posts

Posted - Nov 21 2018 :  16:12:31  Show Profile  Reply
As soon as Rio is released.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Nov 21 2018 :  18:11:41  Show Profile  Reply
Rio Released :)

http://docwiki.embarcadero.com/RADStudio/Rio/en/What%27s_New
https://community.idera.com/developer-tools/
https://www.youtube.com/watch?v=RreUFdxaR20
Go to Top of Page

xequte

38180 Posts

Posted - Nov 21 2018 :  19:31:12  Show Profile  Reply
Yes, we'll be releasing 8.1.2 next week.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

WIZZs

Netherlands
23 Posts

Posted - Nov 21 2018 :  23:28:45  Show Profile  Reply
Perfect timing. Thanks!
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Nov 22 2018 :  10:22:58  Show Profile  Reply
Now to get everything perfect! we need to support Nigel with Firemonkey :)

Kind regards.
Go to Top of Page

WIZZs

Netherlands
23 Posts

Posted - Nov 27 2018 :  16:46:02  Show Profile  Reply
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.
Go to Top of Page

xequte

38180 Posts

Posted - Nov 28 2018 :  00:01:38  Show Profile  Reply
Hi

What version of Delphi are you using?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

WIZZs

Netherlands
23 Posts

Posted - Nov 28 2018 :  00:23:25  Show Profile  Reply
I'm on Delphi 10.1 Berlin Enterprise
Go to Top of Page

xequte

38180 Posts

Posted - Nov 28 2018 :  15:22:53  Show Profile  Reply
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
Go to Top of Page

WIZZs

Netherlands
23 Posts

Posted - Nov 29 2018 :  02:12:57  Show Profile  Reply
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.
Go to Top of Page

xequte

38180 Posts

Posted - Nov 29 2018 :  23:59:17  Show Profile  Reply
Hi

In the current update, it only changes to a stop cursor when dragging outside the control.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

WIZZs

Netherlands
23 Posts

Posted - Nov 30 2018 :  06:28:21  Show Profile  Reply
Oh yes, that will be it. Thank you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: