home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!agate!apple!mumbo.apple.com!gallant.apple.com!kip2-40.apple.com!user
- From: jpugh@apple.com (Jon Pugh)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: How to find if you are in the background?
- Message-ID: <jpugh-050193183035@kip2-40.apple.com>
- Date: 6 Jan 93 02:37:36 GMT
- References: <1iacheINNdh4@moe.ksu.ksu.edu> <1993Jan5.201827.11325@pollux.lu.se>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.hypercard
- Organization: Apple Computer, Inc.
- Lines: 28
-
- In article <1993Jan5.201827.11325@pollux.lu.se>, loa@syo.lu.se (Lars-Olof
- Albertson) wrote:
- >
- > In article <1iacheINNdh4@moe.ksu.ksu.edu> Chandima Cumaranatunge
- > <chan@matt.ksu.ksu.edu> writes:
- > > how can I find out if I'm in the background from within a HyperTalk
- > > script?
- >
- > if the checkmark of menuitem "Background" of menu "Edit" is true then
- > -- you are in the background
- > else
- > -- you are not in the background
- > end if
-
- No offense, but this is way more obtuse than you need. Use the property
- editBkgnd instead. You can set this also to have more precision than
- "doMenu Background" which only toggles the background edit.
-
- Of course, the question might have refered to the background as having
- another program frontmost and Hypercard in the background. This is the
- function "the suspended" which is true when Hypercard is in the background
- and false when it is frontmost.
-
- I have also written an XFCN called Hidden which is true if Hypercard is
- hidden by the Hide Hypercard menu item. It is available from ftp.apple.com
- in the /pub/pugh/hyperstuff directory.
-
- Jon
-