Hello,
thank you. You fix is Ok.
In the next minor release it will be:
procedure TImageEnMView.CheckSelectedImageIsVisible;
// NPC: 23/11/11
var
info: PIEImageInfo;
iViewX, iViewY : integer;
begin
if assigned(Parent) and (fSelectedItem >= 0) and (fMultiSelecting = False) then
begin
iViewX := fViewX;
iViewY := fViewY;
info := PIEImageInfo(fImageInfo[fSelectedItem]);
if info^.X < iViewX then
iViewX := info^.X
else if info^.X + fThumbWidth > iViewX + ClientWidth then
iViewX := info^.X - ClientWidth + fThumbWidth;
if info^.Y < iViewY then
iViewY := info^.Y
else if info^.Y + fThumbHeight > iViewY + ClientHeight then
iViewY := info^.Y - ClientHeight + fThumbHeight;
SetViewXY(iViewX, iViewY);
end;
end;