[comp.sys.mac.programmer] Interesting problem hiliting text

jtn@potomac.ads.com (John T. Nelson) (06/18/91)

Interestingly enough it appears that you cannot hilite multiple fields
within TE package windows.  I have an application where I would like
to hilite various words in a body of text based on, let's say a list
of locations and word lengths.

It seems I'll have to go down to the quickdraw level to do this.  Has
anyone tackled this problem before?  You got code sailor boy?  It
seems to be a problem comperable in difficulty to rewriting various
parts of the TE package since I'll hav to calculate regions to
highlite based on font, style, word length and height, etc.

Any guidence from the Mac wizards out there?



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ORGANIZATION:  Advanced Decision Systems
UUCP:          kzin!speaker@mimsy.umd.edu  INTERNET:   jtn@potomac.ads.com
SPOKEN:        John T. Nelson              PHONE:      (703) 243-1611
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) (06/19/91)

John T. Nelson writes in a message to All

JTN> Interestingly enough it appears that you cannot hilite multiple 
JTN> fields within TE package windows. I have an application where 
JTN> I would like to hilite various words in a body of text based 
JTN> on, let's say a list of locations and word lengths.

I believe that the System 7 TE allows "outline hiliting" for inactive windows.
Perhaps you could fudge TE into thinking that an inactive TE field was part
of another window and have the outline available in various places. Then, perhaps,
you could re-define the outline hiliting to look just like the regular one (and
wouldn't THAT confuse a user).

Lawson
 

--  
Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English
Internet: Lawson.English@p88.f15.n300.z1.fidonet.org