ImageEn, unit imageenview |
|
TImageEnView.OnImageChangeEx
Declaration
property OnImageChangeEx: TIEImageChangeEvent;
Description
Occurs after the image is modified using
TImageEnProc (
Proc property) or
TImageEnIO (
IO property).
If you are using multiple
Layers, then layer changes will also trigger
OnImageChangeEx.
Values of ChangeSource:
Value | Description |
iecsIO (0) | The content of the image has changed due to loading or other TImageEnIO method |
iecsProc (1) | The content of the image has changed due to image editing using TImageEnProc |
iecsBitmap (2) | The content of the image has changed for other reasons (e.g. assignment or layer merging) |
iecsLayer (3) | Properties of a layer have been changed, e.g. by adding, removing, resizing, moving or setting layer properties |
iecsUndo (4) | The content of the image has changed due to Undo or Redo |
Note:
◼This event is triggered by editing methods in
TImageEnProc or in TImageEnView (e.g.
Clear). Not by changes to the
IEBitmap
◼OnImageChangeEx is the same as
OnImageChangeEx, except that it includes a parameter showing whether the change is due to the image or layers
◼TImageEnProc calls
ImageChange after a modification which actuates
OnImageChangeEx.
procedure TForm1.ImageEnView1ImageChangeEx(Sender: TObject; ChangeSource: Integer);
begin
// Update button status only when the image changes (not layers)
if ChangeSource <> iecsLayers then
UpdateButtons();
end;
See Also
◼OnImageChange
◼OnLayerNotify