Hi Nigel,
Thanks a lot.
Here is the final code just for info and with hope it will help someone else in future.
if ImageEnView1.CurrentLayer.Locked then
exit;
if ImageEnView1.LayersCurrent = 0 then
exit;
case CharCode of
VK_LEFT :
begin
ImageEnView1.CurrentLayer.PosX := ImageEnView1.CurrentLayer.PosX - 1;
ImageEnView1.Update;
Handled := True;
end;
VK_RIGHT :
begin
ImageEnView1.CurrentLayer.PosX := ImageEnView1.CurrentLayer.PosX + 1;
ImageEnView1.Update;
Handled := True;
end;
VK_UP :
begin
ImageEnView1.CurrentLayer.PosY := ImageEnView1.CurrentLayer.PosY - 1;
ImageEnView1.Update;
Handled := True;
end;
VK_DOWN :
begin
ImageEnView1.CurrentLayer.PosY := ImageEnView1.CurrentLayer.PosY + 1;
ImageEnView1.Update;
Handled := True;
end;
end;
if (ssShift in Shift) then
begin
case CharCode of
VK_LEFT :
begin
ImageEnView1.CurrentLayer.PosX := ImageEnView1.CurrentLayer.PosX - 10;
ImageEnView1.Update;
Handled := True;
end;
VK_RIGHT :
begin
ImageEnView1.CurrentLayer.PosX := ImageEnView1.CurrentLayer.PosX + 10;
ImageEnView1.Update;
Handled := True;
end;
VK_UP :
begin
ImageEnView1.CurrentLayer.PosY := ImageEnView1.CurrentLayer.PosY - 10;
ImageEnView1.Update;
Handled := True;
end;
VK_DOWN :
begin
ImageEnView1.CurrentLayer.PosY := ImageEnView1.CurrentLayer.PosY + 10;
ImageEnView1.Update;
Handled := True;
end;
end;
end; //if (ssShift in Shift) then
Yogi Yang