I have set this in FormCreate:
IEGlobalSettings().OnAddPopupMenuItem := ImageEnViewPopupMenuAddItem;
...and then the implementation:
procedure TformMain.ImageEnViewPopupMenuAddItem(Sender: TObject; ToolbarID: Integer; ButtonID: Integer; var Include: Boolean);
begin
// Could not find a ButtonID for "Zoom to Selection"
end;