home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / hypercar / 4692 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.9 KB

  1. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.uoregon.edu!oregon.uoregon.edu!derthanq
  2. From: derthanq@oregon.uoregon.edu (Victor Der-Thanq Chen)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: How to detect palette close?
  5. Date: 30 Dec 1992 22:40 PST
  6. Organization: University of Oregon
  7. Lines: 33
  8. Distribution: global
  9. Message-ID: <30DEC199222401944@oregon.uoregon.edu>
  10. References: <1992Dec31.012643.549@microsoft.com>
  11. NNTP-Posting-Host: oregon.uoregon.edu
  12. Keywords: palette system message close
  13. News-Software: VAX/VMS VNEWS 1.41    
  14.  
  15. In article <1992Dec31.012643.549@microsoft.com>, a-scotth@microsoft.com (Scott Hysmith) writes...
  16. >Does anyone have the foggiest clue how to detect a click in the close box of a palette?
  17. >I would really like to execute a handler at this point, but can find no way to notify
  18. >HyperCard that a palette was just closed.
  19. >Any ideas?
  20. >------------------------------------------------------------------------------------------
  21. >Scott Hysmith      |  raksasha@rdwarf.eskimo.com       | "May joy and innocence prevail!"
  22. >5201 150th Pl. SW  |  a-scotth@microsoft.com           |   - from the movie "Toys"
  23. >Edmonds, WA 98026  |  --------------------------------------------------------------------
  24. >-------------------|  I don't think Microsoft gives a wet slap about what I say out here
  25. >                      but I suppose I should make the standard disclaimer noises anyway.
  26. >------------------------------------------------------------------------------------------
  27.  
  28. When you close a palette a system message Closepalette (surprize!) is sent.  
  29.  
  30. So what you need to do is to write a handler like:
  31.  
  32. on closepalette which
  33.     if which is a then do A
  34.     if which is b then do B
  35. end closePalette
  36.  
  37. where which contains the name of the palette you just closed.
  38.  
  39. Hope this help.
  40.  
  41. Victor
  42.  
  43. University of Oregon
  44.  
  45. derthanq@oregon.uoregon.edu
  46.