[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do I need a college educ



        Reply to:   RE>do I need a college education to 
> philg asks about window-layer and window-shown-p

window-shown-p just determines whether or not the window exists on the screen
somewhere, possibly under a pile of other windows.

if you want to determine window occlusions, you'll have to hack that yourself. 
It's not that bad though, you just have to keep track of the size and position
of each window and know your screen parameters.  These fns and vars should do
it all:

(view-size *myWin*)
(view-position *myWin*)
*screen-height*
*screen-width*

So if window A is 100 x 100 and at position #@(0 0) and window B is 50 x 50 and
also at #@(0 0), then of course you won't see window B.  It IS there though,
and a call to window-shown-p on window B returns ...... ?   T-e-e-e


--------------------------------------
Date: 8/17/1994 11:59 PM
To: Steve Casner
From: philg@mit.edu

The documentation for WINDOW-SHOWN-P says that it "returns true if the
window is visible , and false it is hidden".

This seems to return t for me when I give it any of the windows
returned by (WINDOWS), i.e., for any window in the system even if it
is covered by five other windows.

I can't use WINDOW-LAYER either because if I have six windows all in
different spots on a big screen, they are all visible as far as I'm
concerned yet they all report themselves as being in different layers.

Is there an easy way to determine if part or all of a window is in
fact visible to a user?  And what is the purpose of WINDOW-SHOWN-P?

Thanks,



--

      -- Philip Greenspun

-------------------------------------------------------------
MIT Department of Electrical Engineering and Computer Science
545 Technology Square, Rm 433, Cambridge, MA 02139, (617) 253-8574
Personal Web URL:  http://www-swiss.ai.mit.edu/~philg/philg.html
summer address:  PO Box 952, Los Alamos, NM 87544 (505) 665-0131

------------------ RFC822 Header Follows ------------------
Received: by qmgate.arc.nasa.gov with SMTP;17 Aug 1994 23:59:30 U
Received: from brazil.cambridge.apple.com (brazil.cambridge.apple.com
[198.112.73.3]) by eos.arc.nasa.gov (8.6.4/8.6.4) with SMTP id XAA16389 for
<casner@eos.arc.nasa.gov>; Wed, 17 Aug 1994 23:56:50 -0700
Received: from ministry.cambridge.apple.com by brazil.cambridge.apple.com with
SMTP (5.64/25-eef)
	id AA08564; Thu, 18 Aug 94 02:54:36 -0400
	for casner@eos.arc.nasa.gov
Received: by cambridge.apple.com (5.64/25-eef)
	id AA08745; Thu, 18 Aug 94 02:53:59 -0400
Received: from brazil.cambridge.apple.com by cambridge.apple.com with SMTP
(5.64/25-eef)
	id AA08741; Thu, 18 Aug 94 02:53:56 -0400
Received: from services.cambridge.apple.com by brazil.cambridge.apple.com with
SMTP (5.64/25-eef)
	id AA08546; Thu, 18 Aug 94 02:53:38 -0400
	for info-mcl@ministry.cambridge.apple.com
Received: from localhost by services.cambridge.apple.com (8.6.4.1/A/UX-3.00)
	id CAA26093; Thu, 18 Aug 1994 02:53:50 -0400
To: comp-lang-lisp-mcl@services.cambridge.apple.com
Path:
services.cambridge.apple.com!news2.near.net!MathWorks.Com!yeshua.marcam.com!usc!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!zurich.ai.mit.edu!philg
From: philg@zurich.ai.mit.edu (Philip Greenspun)
Newsgroups: comp.lang.lisp.mcl
Subject: do I need a college education to understand WINDOW-SHOWN-P?
Date: 18 Aug 94 00:29:47
Organization: M.I.T. Artificial Intelligence Lab.
Lines: 28
Distribution: world
Message-Id: <PHILG.94Aug18002947@camelot.ai.mit.edu>
Reply-To: philg@mit.edu
Nntp-Posting-Host: camelot.ai.mit.edu