ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to prevent selecting PDF image objects in ImageEnView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

DenisViz

8 Posts

Posted - Oct 06 2025 :  07:09:36  Show Profile  Reply
Hi everyone,

I’m using ImageEnView in Delphi to work with PDF files. On a PDF page, I have text objects and images.

My goal: clicking on an image should NOT select it, while text objects should still be selectable as usual.

Currently, I tried using the OnUserInteraction event with ieiPDFObjectSelected:

procedure TfrmMain.ImageEnView1UserInteraction(Sender: TObject; Event: TIEUserInteractionEvent; Info: Integer);
begin
  if Event = ieiPDFObjectSelected then
  begin
    if ImageEnView1.PdfViewer.Objects[Info].ObjectType = ptImage then
      ImageEnView1.PdfViewer.SelectedObject := -1; // deselect
  end;
end;


However, the image still gets briefly selected before the deselection happens.

xequte

39279 Posts

Posted - Oct 06 2025 :  08:14:01  Show Profile  Reply
Hi Denis

That level of selection support is not yet available, but let me look into it when I'm back in the office next week.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

xequte

39279 Posts

Posted - Oct 13 2025 :  00:10:23  Show Profile  Reply
Hi

This is supported in the latest beta. Please email me for it.

Note: Ensure that you check that info is a valid index (i.e. >= 0 )

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: