[comp.windows.x] circling text in a window

uucigj@gandalf.sbc.com (Gregg Jensen) (10/17/90)

I would like to take a stab at making a word search X program (you 
know that game you search thru the matrix of letters to find words 
and then circle them).  Well I have to word search part and I would
like to get any hints on how to be able to circle the words after the
matrix has been put in a window.  Is it possible to say set the 
beginning and end points (beginning and end of the word), check it to
see if it is in the list, and then draw a circle around the beginning
and end points?  Or, do I have to draw a line thru the words instead
of a circle (is this easier?).  Or do I have to create several fonts
that have normal letters and then letters that have lines thru them
(potentially a lot of fonts).  Or is there another idea, or has 
someone already done this?  Also, this a part time project and I would
say that I am a strong novice with X programs,  is this harder than I
imagine?

      Gregg Jensen
---------------------------------------------------------------------- 
 These opinions are my own and do not necessarily reflect my companies.
      Southwestern Bell Telephone
uucigj@swbatl.sbc.com       -or-
uucigj@gandalf.sbc.com      -or-
uucigj%gandalf.sbc.com@uunet.uu.net
---------------------------------------------------------------------- 

mouse@LARRY.MCRCIM.MCGILL.EDU (10/20/90)

> I would like to take a stab at making a word search X program (you
> know that game you search thru the matrix of letters to find words
> and then circle them).

Not to rain on your parade, but in the lawsuit-happy world down there
this could open you up to a look-and-feel suit from one of the
word-game magazine companies.  I recall seeing a word-search game in a
magazine where the instructions (as if they were needed!) made quite a
point of "draw a line through the word, *do not* circle it".  What a
crazy world we live in.

> Well I have to word search part and I would like to get any hints on
> how to be able to circle the words after the matrix has been put in a
> window.  Is it possible to say set the beginning and end points
> (beginning and end of the word), check it to see if it is in the
> list, and then draw a circle around the beginning and end points?

Sure.  Just draw two lines and two semicircles...the only even slightly
difficult part is placing them, and that is hardly a mindbender.

> Or, do I have to draw a line thru the words instead of a circle (is
> this easier?).

Marginally.  It's one line instead of two lines and two semicircles.

> Or do I have to create several fonts that have normal letters and
> then letters that have lines thru them (potentially a lot of fonts).

Oh ick.  You don't want to do it that way, trust me.

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu