Highlighting of text with string

This forum is for ideas and or code to be contributed for general use.
Post Reply
Message
Author
User avatar
RDalzell
Posts: 205
Joined: Thu Jan 28, 2010 6:57 am
Location: Alsip, Illinois USA

Highlighting of text with string

#1 Post 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
Attachments
HighLight.zip
(12.17 KiB) Downloaded 877 times

skiman
Posts: 1183
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Highlighting of text with string

#2 Post 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.
Best regards,

Chris.
www.aboservice.be

Post Reply