ImageEn, unit imageenview |
|
TImageEnView.OnBeforeLoadImage
Declaration
property OnBeforeLoadImage: TNotifyEvent;
Description
Occurs before a new image is been loaded. This event will fire before:
◼Loading an image using
TImageEnView.IO.LoadFromFile
◼Navigating to a new image using
buttons or the
mouse wheel
◼Selecting a new image in a
TImageEnMView when
attached to this control
OnBeforeLoadImage is useful if you need to prompt the user to save changes, for example.
Note:
◼When loading completes
OnImageLoaded and
OnFinishWork will both fire
◼To get the filename of the old image, use
Filename
◼This event is the same as ieftBeforeLoad in
OnIONotify