JVCL Help:TJvImagesViewer.OnLoadError

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when an error occurs while loading an image.


Pascal

 TJvImageLoadErrorEvent = procedure (Sender: TObject; E: Exception; const FileName: WideString; var Handled: Boolean) ofobject;
propertyOnLoadError: TJvImageLoadErrorEvent;


Parameters

Parameters Description
FileName The file that triggered the event. This is empty if the image is loaded from some other source than a file on disk (like the clipboard or a TPicture object).
Handled Set this parameter to true if you want to handle the error yourself. If Handled is false (the default), no error is reported and the item is removed from the Items property. If Handled is set to true, the image is cleared and the exception is raised but the item is left in the Items property.
Sender The object that triggered the event.
E The Exception object that was triggered.


Description

Write a handler for the OnLoadError event to take specific actions when an error occurs while loading an image from file. For example, if the image file is corrupted or the file does not contain a recognized image format, this event is triggered.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page