home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.uoregon.edu!oregon.uoregon.edu!derthanq
- From: derthanq@oregon.uoregon.edu (Victor Der-Thanq Chen)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: How to detect palette close?
- Date: 30 Dec 1992 22:40 PST
- Organization: University of Oregon
- Lines: 33
- Distribution: global
- Message-ID: <30DEC199222401944@oregon.uoregon.edu>
- References: <1992Dec31.012643.549@microsoft.com>
- NNTP-Posting-Host: oregon.uoregon.edu
- Keywords: palette system message close
- News-Software: VAX/VMS VNEWS 1.41
-
- In article <1992Dec31.012643.549@microsoft.com>, a-scotth@microsoft.com (Scott Hysmith) writes...
- >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?
- >
- >------------------------------------------------------------------------------------------
- >Scott Hysmith | raksasha@rdwarf.eskimo.com | "May joy and innocence prevail!"
- >5201 150th Pl. SW | a-scotth@microsoft.com | - from the movie "Toys"
- >Edmonds, WA 98026 | --------------------------------------------------------------------
- >-------------------| I don't think Microsoft gives a wet slap about what I say out here
- > but I suppose I should make the standard disclaimer noises anyway.
- >------------------------------------------------------------------------------------------
-
- When you close a palette a system message Closepalette (surprize!) is sent.
-
- So what you need to do is to write a handler like:
-
- on closepalette which
- if which is a then do A
- if which is b then do B
- end closePalette
-
- where which contains the name of the palette you just closed.
-
- Hope this help.
-
- Victor
-
- University of Oregon
-
- derthanq@oregon.uoregon.edu
-