logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
msg  
#1 Posted : Monday, October 7, 2019 12:27:38 PM(UTC)
msg

Rank: Newbie

Groups: Registered
Joined: 5/22/2017(UTC)
Posts: 3

Thanks: 1 times
Hi,
When searching a PDf document using the pdfToolStripSearch component sometime the highlighted results is too close to the top of the page.
Is there a way to scroll the page down a few pixels to make the highlight more visible?

wsdl.png (334kb) downloaded 4 time(s).
Paul Rayman  
#2 Posted : Friday, October 11, 2019 6:59:35 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 844

Thanks: 2 times
Was thanked: 103 time(s) in 101 post(s)
Hi,

I see no other way to do this than to change the source code.
The source code is available here:
https://github.com/Patag...rs/PdfToolStripSearch.cs

You need modify ScrollToRecord method

Replace a call of
PdfViewer.ScrollToChar(ft.CharIndex);
with a call to
PdfViewer.ScrollToPoint(...);

Edited by user Friday, October 11, 2019 7:03:36 AM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
msg on 10/11/2019(UTC)
Paul Rayman  
#3 Posted : Saturday, October 12, 2019 9:20:52 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 844

Thanks: 2 times
Was thanked: 103 time(s) in 101 post(s)
We will change this behavior in the next release.
Paul Rayman  
#4 Posted : Sunday, October 13, 2019 3:53:47 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 844

Thanks: 2 times
Was thanked: 103 time(s) in 101 post(s)
Hi,

Please try the updated search tool in the latest version.
https://forum.patagames....n-Oct--13--2019#post1824
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.