Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

How to highlight searchable string

More
IP: 192.168.0.70 12 years 6 months ago #4091 by arcmobile.div
Hi,


While search a string i am getting a list of position RECT array,page no . From that array if i am going that page that search string should be highlighted . Can you tell us how to implement above mention !!!


Thanks.
More
IP: 192.168.0.152 12 years 6 months ago #4094 by nermeen
You can implement it as follows:

- you can set a variable based on which highlight all search query in a page for example (boolean findAll)
- in vDraw check your variable:
Code:
if( m_finder.find_get_page() == cur ) if(findAll) m_finder.find_draw_all(bcan, vpage, left, top); else m_finder.find_draw(bcan, vpage, left, top);
- then in PDFVFinder add find_draw_all that look like: (note not tested)
Code:
protected void find_draw_all(Canvas canvas, PDFVPage page, int scrollx, int scrolly) { m_page_find_index = 0; while(m_page_find_index < m_page_find_cnt) { find_draw(canvas, page, scrollx, scrolly); m_page_find_index++; } }
Time to create page: 0.384 seconds
Powered by Kunena Forum