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) ?
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 ?
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: