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

  1. Path: sparky!uunet!opl.com!hri.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!netcomsv!apple!goofy!mumbo.apple.com!gallant.apple.com!kip2-12.apple.com!user
  2. From: jpugh@apple.com (Jon Pugh)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: How to detect palette close?
  5. Message-ID: <jpugh-040193225902@kip2-12.apple.com>
  6. Date: 5 Jan 93 06:59:18 GMT
  7. References: <1992Dec31.012643.549@microsoft.com>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.hypercard
  10. Distribution: global
  11. Organization: Apple Computer, Inc.
  12. Lines: 23
  13.  
  14. In article <1992Dec31.012643.549@microsoft.com>, a-scotth@microsoft.com
  15. (Scott Hysmith) wrote:
  16. > Does anyone have the foggiest clue how to detect a click in the close box of a 
  17. > palette?  I would really like to execute a handler at this point, but can find 
  18. > no way to notify HyperCard that a palette was just closed.
  19. > Any ideas?
  20.  
  21. The palette XCMD sends a closePalette message when this happens.  Just
  22. catch it with an "on closePalette" handler.
  23.  
  24. The important thing is to know how to figure this out.  If you want to know
  25. what message is sent when something happens, type "mw" to bring up the
  26. message watcher.  Click on the Hide Idle button and click off the Hide
  27. Unused Messages button.  Now do whatever you want to catch and see if a
  28. message appears.  This is how I determined that there really is a
  29. closePalette message and what it is called.  If a message appears like
  30. "closePalette" then there is a handler catching it while if it appears as
  31. "(closePalette)" then there is no handler and Hypercard itself is getting
  32. the message.
  33.  
  34. Jon
  35.