Hi Nigel,
thanks for your reply, this works nearly fine.
My code looks now like in the bottom.
After the insert i have to move the layer to the same index as before.
After the cut and past procedure the mouseinteraction is set to [miMoveLayers]. With a button, the user can select a region for "cut and paste" again (set mouseinteraction to [miSelect].
If i call the codefragement again, i get an "EAccessViolation".
Perhaps i have to remove the selected region with an other function (not imageEnView.Deselect), but i doesn't found it, sorry.
idx := ImageEnView1.LayersCurrent;
newidx := ImageEnView1.LayersCreateFromSelection;
self.ImageEnView1.DeSelect;
ImageEnView1.LayersRemove(idx);
ImageEnView1.LayersMove(newidx-1,idx);
ImageEnView1.Update;
// set mouse interaction to move layers
self.ImageEnView1.MouseInteract := [miMoveLayers];
Kind Regards
Markus