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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SetViewXY doesn't affect scrollbar

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
aleatprog Posted - Feb 25 2025 : 06:47:07
Hi,

(1) applying the help example code of TImageEnView.OnViewChange to ImageEnView1,
procedure TForm1.ImageEnView1ViewChange(Sender: TObject; Change: Integer);
begin
  ImageEnView2.LockUpdate();
  try
    ImageEnView2.SetViewXY(TImageEnView(Sender).ViewX, TImageEnView(Sender).ViewY);
  finally
    ImageEnView2.UnlockUpdate();
  end;
end;

(2) loading PDF documents in ImageEnView1 + ImageEnView2 and
(3) moving the scrollbar of ImageEnView1,
the two documents are correctly viewed in sync, but the scrollbar of ImageEnView2 doesn't move with the page (see image below). ImageEnView2.Update or ImageEnView2.Refresh don't update the scrollbar position.

What do I need to add to the code in order to sync the scrollbar position of ImageEnView2 with the document position of ImageEnView2?

Ale

Image: in red the two scrollbar positions after moving the scrollbar of ImageEnView1

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 26 2025 : 23:05:54
Hi Ale

Please email me for the latest beta which updates themed scrollbars correctly.

Nigel
Xequte Software
www.imageen.com
aleatprog Posted - Feb 26 2025 : 04:26:18
Hi Nigel,

creating a demo from scratch, I noticed that the malfunction is connected to the used UI style. On my machine, the above shown code works fine with the default Windows style; switching to a specific appearance (e.g. Project > Options > Application > Appearance > Windows10 Dark), the scrollbar behaviour changes.
Thus, by solely changing the appearance you should be able to reproduce the malfunction.

Ale
xequte Posted - Feb 25 2025 : 15:37:43
Hi Ale

I'm not seeing that here. Your code works perfectly for me. Can you send me a very small demo that reproduces it.

Nigel
Xequte Software
www.imageen.com