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
 AttachedImageEnView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jeffp

USA
47 Posts

Posted - Dec 03 2024 :  18:09:39  Show Profile  Reply


When using

ImageEnMView1.AttachedImageEnView := ImageEnView1

Should the file be loaded using ImageEnMView1 or ImageEnView1

When loading using ImageEnMView1, the navigation doesn't work on page 1. You CANNOT MouseWheel back to page 1 once you've left it.

jp

xequte

38627 Posts

Posted - Dec 03 2024 :  18:35:03  Show Profile  Reply
Hi Jeff

I'm not seeing that. Try adding this code:

  // Mouse wheel scrolls through the images (with secondary actions if Ctrl is pressed)
  ImageEnView1.MouseWheelParams.Action := iemwNavigate;
  ImageEnView1.MouseWheelParamsAlt.Action := iemwZoom;
  IEFolderMView.MouseWheelParams.Action := iemwNavigate;
  IEFolderMView.MouseWheelParamsAlt.Action := iemwVScroll;


To the demo:
\Demos\Multi\MView_AttachedViewer\MViewPreview.dpr

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

jeffp

USA
47 Posts

Posted - Dec 03 2024 :  18:59:01  Show Profile  Reply
Should the file be loaded using ImageEnMView1 or ImageEnView1?

jp
Go to Top of Page

xequte

38627 Posts

Posted - Dec 04 2024 :  00:30:33  Show Profile  Reply
Hi

You should be loading it using ImageEnMView1.MIO.LoadFromFile();

(Except in the special case of PDF files).

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

jeffp

USA
47 Posts

Posted - Dec 04 2024 :  08:35:40  Show Profile  Reply
I'm still having an issue mouse wheeling back to the first page.


FViewer := TImageEnView.Create(AOwner);
FThumbs := TImageEnMView.Create(nil);
FThumbs.AttachedImageEnView := FViewer;

FViewer.MouseWheelParams.Action := iemwNavigate;
FViewer.MouseWheelParamsAlt.Action := iemwZoom;
FThumbs.MouseWheelParams.Action := iemwNavigate;
FThumbs.MouseWheelParamsAlt.Action := iemwVScroll;


I loads with page 1 displaying in the Viewer, but then when I mouse wheel down to page 2 and then back to page 1 the Viewer still displays page 2, but the Thumbs pane does select page 1.

So page 1 gets selected in the thumbs pane, but the does NOT get loaded in the Viewer.

By the way, I'm loading a multi-page TIF file. It works fine when I load a PDF.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: