Page 1 of 1

Highlighting of text with string

Posted: Mon Sep 27, 2010 2:57 pm
by RDalzell
Hi Chris,

I attempted to implement the attached into your Wild Search program, but it is deeper than I thought.

Your search works great, but the addition to display the searched text within the return would enhance the operation.

If you agree and are so inclined to have a look, I have the routine authored by J. A. Diego Kerejeta attached.

Rick

Re: Highlighting of text with string

Posted: Mon Sep 27, 2010 11:07 pm
by skiman
Hi Rick,

With the new possibilities of DCBROWSE it will be easy to implement this.

When you have your array returned of wildsearch, use dc_setscopearray(aArray) and show the browse. In the new dcbrowse there is an ownerdraw functionality, which you can use to display the text of the search in a different color.