home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / hypercar / 4718 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.6 KB

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