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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEnView Grouped Layers (2 Layers:1 image, 1 text) How Can I Get Text Value ?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
andyhill Posted - May 31 2023 : 02:26:06
ImageEnView contains multiple Grouped Layer Sets.

First Layer is Image, Second Layer is Text (grouped together) created one after the other in code then grouped.

I have two situations:-

1) ImageEnView1MouseUp Event
if GetKeyState(VK_SHIFT) < 0 then begin
ALayer:= ImageEnView1.CurrentLayer;
do something with the bound Text Layer text

2) Procedure Iterating ALL Layers, read the Text Value of the Bound Layer Set ?
if ( (ALayer.LayerIndex > 0)
and ((ALayer.Kind = ielkImage) or (ALayer.Kind = ielkText))
) then begin
do something with the bound Text Layer

DOES A PARENT LAYER HAVE A DEPENDANT CHILD/CHILDREN LAYER(S) ?



Andy
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 08 2023 : 02:20:19
Hi Andy

Yes, that is correct. Glad you got to the bottom of it.

Nigel
Xequte Software
www.imageen.com
andyhill Posted - Jun 07 2023 : 15:59:21
Nigel, after a rewrite from a different perspective it is working for me - sorry for the concern :(

The lesson I learnt, the Highest LayerIndex within a grouped object becomes the Group Click Layer (obvious when you consider the "Z" order).

Andy
xequte Posted - Jun 04 2023 : 13:12:03
Hi Andy

Thanks, I've received your message. I don't think that is a bug; I've emailed you.

Nigel
Xequte Software
www.imageen.com
andyhill Posted - Jun 03 2023 : 15:12:01
Yes I thought that would be the case HOWEVER I believe I have identified a bug - will advise.

Andy
xequte Posted - Jun 03 2023 : 04:00:21
Hi Andy

You set the GroupIndex for all layers that are grouped.

The layer index specifies the z value, i.e. layer 0 is the background image, layer 1 is the bottom most layer, up to Layers[LayerCount-1] which is the top-most layer. You can change the order using:

https://www.imageen.com/help/TImageEnView.LayersArrange.html


Nigel
Xequte Software
www.imageen.com
andyhill Posted - Jun 02 2023 : 19:10:53
Do I set GroupIndex only for the ChildLayer which then points to ParentLayer as owner
-or-
do I set both Parent & Child Layers to have the same GroupIndex ?

How do I control the Z order ?

Andy
xequte Posted - Jun 01 2023 : 03:59:38
Hi Andy

To find other layers grouped with the current one, you need to iterate through all the layers to find the ones with a matching GroupIndex:

http://www.imageen.com/help/TIELayer.GroupIndex.html





Nigel
Xequte Software
www.imageen.com