Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!purdue!mentor.cc.purdue.edu!j.cc.purdue.edu!brazil.psych.purdue.edu!zhou From: zhou@brazil.psych.purdue.edu (Albert Zhou) Newsgroups: comp.lang.pascal Subject: Re: Text windows Message-ID: <11473@j.cc.purdue.edu> Date: 13 Nov 90 23:04:00 GMT References: <7187@hub.ucsb.edu> Sender: news@j.cc.purdue.edu Reply-To: zhou@brazil.psych.purdue.edu (Albert Zhou) Distribution: comp Organization: Purdue University Lines: 11 I don't really get it. If your window information is stored in variables, it is really simple. Suppose two windows are defined as (xa1,ya1,xa2,ya2) and (xb1,yb1,xb2,yb2), if (([xa1..xa2]*[xb1..xb2])=[]) or ([ya1..ya2]*[yb1..yb2]=[]) then these two windows are not overlapping. I don't know it can be called optimized, but I couldn't think of anything simpler. I don't undertand the author's writing after "My problem is.." until the end of the article. ([ya1..ya2]*[yb1..yb2]