warsaw@nlm.nih.gov (Barry A. Warsaw) (04/13/91)
I have a question about TEXTSW that hopefully some of you have come across. Is there any way to programmatically inverse-video certain words in a TEXTSW? I am writing a full-text database retrieval application and I need to highlight all the words in a document that match a user's query. Each document gets placed in a single TEXTSW. There many words in each document (TEXTSW window) that must be highlighted. I know I can search the text in a TEXTSW but I also need to be able to somehow highlight regions of text programmatically. Even changing the color or bolding some text would be acceptable. Thanks in advance. -Barry NAME: Barry A. Warsaw INET: warsaw@nlm.nih.gov TELE: (301) 496-1936 UUCP: uunet!nlm.nih.gov!warsaw
** Sender Unknown ** (04/16/91)
> Is there any way to programmatically inverse-video certain words in a > TEXTSW? I am writing a full-text database retrieval application and I > need to highlight all the words in a document that match a user's > query. Each document gets placed in a single TEXTSW. There many words > in each document (TEXTSW window) that must be highlighted. I know I > can search the text in a TEXTSW but I also need to be able to somehow > highlight regions of text programmatically. Even changing the color or > bolding some text would be acceptable. No can do (well, you can *always* hack the src). Forget about different colors and bolding text too. You only get one color and one font in a TEXTSW. FYI, take a look at the NeWS/TNT JOT object. Frank G.