Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!usc!ucsd!hub.ucsb.edu!ucsbuxa!6600bori From: 6600bori@ucsbuxa.ucsb.edu (Boris Burtin) Newsgroups: comp.lang.pascal Subject: Text windows Message-ID: <7187@hub.ucsb.edu> Date: 13 Nov 90 20:37:17 GMT Sender: news@hub.ucsb.edu Distribution: comp Lines: 9 I have been working on a text windowing program in Turbo Pascal, and just have one question. I have a function that determines whether two windows overlap. It currently does this by checking if one of the corners of one of the windows is inside the other window. The problem is that I have not truly optimized the coding. I have a long string and and/or statements that works, but gives me a complex whenever I look at it. Does anyone have an algorithm for this kind of problem? - Boris Burtin (6600bori@ucsbuxa.ucsb.edu)