Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
ZS Tekatec
Posted - Mar 31 2025 : 15:58:01 Hello
in your demo I've got empty background:
and then I click it and Paste (Ctrl+V) image from clipoard:
Is it possible that after Ctrl+V new image layer will be created and not background modified?
ZS
2 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Mar 31 2025 : 21:22:39 Also, from v14.0.1 if you enable LayerEditingMode, images will always be added as new layers rather than replacing the background content.
In the current beta you can prevent cutting and pasting to layer 0 using loProtectBackground. There will also be finer control with TImageEnView.OnKeyboardShortcut.
procedure TMain.ImageEnView1KeyboardShortcut(Sender: TObject; Shortcut: TShortCut; var Allow: Boolean);
begin
// Prevent pasting to the background layer
if ( ImageEnView1.LayersCurrent = 0 ) and ( Shortcut = scCtrl or VK_V ) then
Allow := False;
end;