Please implement the following option in TImageEnView:
When an other program changes the image file on disc which was previously loaded in ImageEnView, then ImageEnview should update the currently loaded image by reloading the changed image from disc. As I said, just an option which is OFF per default. Would be very useful.
Or at least it should have a "Reload" method which reloads the previously loaded image. It should also have a "FileName" property which is filled when an image file is loaded from disc.
Thank you for the suggestion. Although I think this is application-specific behavior (and out of ImageEn context), this could be done in a future release. BTW: ImageEn stores last loaded file name into TImageEnView.IO.Params.FileName property.
I have added Reload as a helper function for the next update (just add iexHelperFunctions to your uses clause).
I agree with Fabrizio that automatic loading is best handled by the application. You could do this easily with a TTimer checking the file date of the loaded file or use FindFirstChangeNotification and watch for FILE_NOTIFY_CHANGE_LAST_WRITE.