I have a Form containing an Image.
this Image can be manipulated by events, like Mouse-up Mouse-down and so on.
For performanceissues I created an array of Images where I preformat the Image and its content (picture).
This array is loaded in the background.
Now when I load the Image the Picture is shown as expected, but the events on that image do not work anymore, as I pressume its because the Image works now as a pointer.
How can I inherit the Events to the displayed Image?
Here some codesnippeds:
Loop filling the Array:
filelistPointer[i].Foto := TImage.Create(FormFotoAnzeige);
filelistPointer[i].Foto.Parent := FormFotoAnzeige;
filelistPointer[i].Foto.top := 0;
filelistPointer[i].Foto.left := 0;
filelistPointer[i].Foto.width := 1920;
filelistPointer[i].Foto.height := 1080;
filelistPointer[i].Foto.Proportional:=True;
filelistPointer[i].Foto.Center:=True;
filelistPointer[i].Foto.stretch := true;
filelistPointer[i].Foto.StretchInEnabled:=true;
filelistPointer[i].Foto.StretchOutEnabled:=true;
filelistPointer[i].Foto.visible:=false;
filelistPointer[i].Foto.Picture.LoadFromFile(filelistPointer[i].Filename);
Reading the Image into my form
ImageQuer.visible := false;
ImageQuer := filelistPointer[sgX.Row].Foto;
ImageQuer.visible := true;