home *** CD-ROM | disk | FTP | other *** search
- 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
- From: jpugh@apple.com (Jon Pugh)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: How to detect palette close?
- Message-ID: <jpugh-040193225902@kip2-12.apple.com>
- Date: 5 Jan 93 06:59:18 GMT
- References: <1992Dec31.012643.549@microsoft.com>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.hypercard
- Distribution: global
- Organization: Apple Computer, Inc.
- Lines: 23
-
- In article <1992Dec31.012643.549@microsoft.com>, a-scotth@microsoft.com
- (Scott Hysmith) wrote:
- >
- > Does anyone have the foggiest clue how to detect a click in the close box of a
- > palette? I would really like to execute a handler at this point, but can find
- > no way to notify HyperCard that a palette was just closed.
- >
- > Any ideas?
-
- The palette XCMD sends a closePalette message when this happens. Just
- catch it with an "on closePalette" handler.
-
- The important thing is to know how to figure this out. If you want to know
- what message is sent when something happens, type "mw" to bring up the
- message watcher. Click on the Hide Idle button and click off the Hide
- Unused Messages button. Now do whatever you want to catch and see if a
- message appears. This is how I determined that there really is a
- closePalette message and what it is called. If a message appears like
- "closePalette" then there is a handler catching it while if it appears as
- "(closePalette)" then there is no handler and Hypercard itself is getting
- the message.
-
- Jon
-