Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1

TOPIC:

Search text highlight 8 years 7 months ago #9602

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • 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 8 years 7 months ago #9603

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
which platform are you interested to?

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

Search text highlight 8 years 7 months ago #9608

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

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

Search text highlight 8 years 7 months ago #9616

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
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 8 years 7 months ago #9631

  • goldkyo
  • goldkyo's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 2
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