I'm using the TImageEnMView with the TImageEnVect and I need to know how to copy all the objects that I create on the TImageEnVect to the TImageEnMView so that when I click through the pages of the TImaveEnMView all the objects will reappear in the TImageEnVect.
I am afraid this is not possible with TImageEnMView. TImageEnMView can only display a bitmap of the image and its objects. It does not store the object type, colors and dimensions so it is not possible to recreate the objects from TImageEnMView.
Yes, you would need to save the TImageEnVect to a file or stream (as an IEV or ALL file) to maintain the content. For example, you could store a list of temp files (or a stream array in memory) and use the TImageEnMView to display the content of those temp files or stream content.
Is there somewhere on the TImageEnMView for each page that I can attach a custom object so that it gets associated with the page even if the page gets reordered.
Ok. I've got the UserImagePointer working and storing my objects, but how can I get the TImageEnMView Thumbnail to visibility show the object I place on the TImageEnVect? TImageEnMview.Update seems to only show changes made to the underlying bitmap.
As I said before TImageEnMView has no way to know anything about objects. So you have to use the UserImagePointer to do that. I'd try to be of more help but I have never tried this before, but I suspect the UserImagePointer Index has to be set to the SelectedImage (index}. That way you can associate the objects in the UserImagePointer to a specific thumbnail.
Something like ImageEnMView1.ImageUserPointer[ImageEnMView1.SelectedImage]; This returns a pointer. Perhaps Nigel has some more info he can provide. I can not.
The pointer is working great. I'm just trying to have the thumbnail image show the objects I added to the TImageEnVect. But I sense that may not be possible.
Rather than filling the TImageEnMView with actual files with filenames, use it virtually. I.e. add a cell for each of your images and fill the "ImageID". Then whenever an image is required the OnImageIDRequestEx and OnImageIDRequest events will be called. In those fill the TBitmap or TIEBitmap with the image stored in memory for that cell.