Search text highlight - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC: Search text highlight

Search text highlight 3 years 1 month ago #9602

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
hi,
When i search a text the searched text is highlighted and displayed on the pdf.
but when i click on cancel button to cancel the search, the text is still highlighted and highlight disappears when i scroll the pdf.
Can you tell me how can i disable the highlight on the text on click of cancel button.?

Please Log in or Create an account to join the conversation.

Search text highlight 3 years 1 month ago #9603

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
which platform are you interested to?

Please Log in or Create an account to join the conversation.

Search text highlight 3 years 1 month ago #9608

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
Windows

Please Log in or Create an account to join the conversation.

Search text highlight 3 years 1 month ago #9616

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
You should invoke the
vDraw();
when finishing the search phase.

your could would look like that below:
public void vFindEnd()
            {
                if (m_pages == null) return;
                m_finder.find_end();
                // clean highlight 
                vDraw();
            }

I've just forwarded your note to dev team.

Please Log in or Create an account to join the conversation.

Last edit: by support.

Search text highlight 3 years 1 month ago #9631

  • goldkyo
  • goldkyo's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 12
  • Karma: 1
  • Thank you received: 1
Hi, actually this behavior is kind of "works as designed". Since from my experience, I might lost my keyword as soon as the text highlight goes. This really bothers me sometimes. And of course, if you do not want this behavior, you can redraw the page by calling vDraw() method as suggested in previous post. That should be good enough.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum