Meanwhile I've found this other solution which works very well:
procedure TFormMain.btnImageEnViewClick(Sender: TObject);
begin
ImageEnView1.MouseInteract := [miSelectZoom];
end;
procedure TFormMain.ImageEnView1MouseUp(Sender: TObject; Button:
TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
if ImageEnView1.MouseInteract = [miSelectZoom] then
begin
ImageEnView1.AutoShrink := False;
ImageEnView1.ZoomSelection();
end;
end;
And then I reset the Zoom with this button:
procedure TFormMain.btnImageEnViewResetAutoShrinkClick(Sender: TObject);
begin
ImageEnView1.AutoShrink := True;
ImageEnView1.Update;
end;
What do you think?