It seems that disabling CTRL+C for Clipboard Copy in TImageEnView is possible only globally:
IEGlobalSettings().KeyboardShortcuts[iesCopy] := 0;
But I have several TImageEnView in my application on different forms, and I want to disable CTRL+C only in one of them; how can I do that?
A KeyDown event handler does not disable CTRL+C in TImageEnView:
procedure TformPreview.ImageEnViewPreviewKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if (Shift = [ssCtrl]) then
begin
case Key of
VK_C:
begin
CodeSite.Send('TformPreview.ImageEnViewPreviewKeyDown: ');
end;
end;
end;
end;