Hi
I have two images - weather charts from different forecast models for the same day with approximately the same image size and map background - displayed in two separate tool windows. I want to synch the two imageEnView components so that where ever I pan and how ever much I zoom in one is mirrored in the image in the other window. When I add the code below to both units I obviously get feedback from the changes I make which ruin any chances of synching the images. Is there any clever method of tying the two images together to make this work?
Bruce.
procedure ImageViewChange(Sender: TObject; Change: Integer);
begin
if assigned(fmEditAnalysisDlg) and fmEditAnalysisDlg.Visible then
begin
fmEditAnalysisDlg.Image.Zoom :=Image.Zoom;
fmEditAnalysisDlg.Image.ViewX :=Image.ViewX;
fmEditAnalysisDlg.Image.ViewY :=Image.ViewY;
end;
end;