ImageEn, unit imageenview

TImageEnView.OnImageChangeEx

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.

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.


Example

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