Hi Nigel,
with the above code:
ImageEnMView1.CopyToIEBitmap(idx, MainForm.formMain.ImageEnView1.IEBitmap, True);
... neither the OnImageChange event-handler nor the OnImageChangeEx event-handler for ImageEnView1 gets triggered - but yet the SAVE button gets activated!
Could you please provide a code example on how to "iterate over the buttons to find the one with the TImageEnViewSave action"? Thank you!
PS: I have tried this code but was stuck on how to access the button's action:
procedure TformMain.DisableSaveToolbarButton;
var
bt: TImageEnViewButton;
begin
// iterate over the buttons to find the one with the TImageEnViewSave action and set EnableOnlyWhenChanged := False;
for bt := Low(TImageEnViewButton) to High(TImageEnViewButton) do
begin
// how to find the one with the TImageEnViewSave action?
end;
end;