Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!sdd.hp.com!spool2.mu.edu!uunet!world!ralph From: ralph@world.std.com (Ralph Lombreglia) Newsgroups: comp.sys.mac.hypercard Subject: Question about protocol for trapping menu items. Keywords: domenu, compact, trap Message-ID: <1991Jan23.234729.7744@world.std.com> Date: 23 Jan 91 23:47:29 GMT Sender: ralph@world.std.com (Ralph Lombreglia) Organization: The World @ Software Tool & Die Lines: 19 As the "Palette Maker" card of the "Power Tools" stack advises, I've trapped the "Compact Stack" menu item in order to close my palettes before compacting. However, I can't seem to figure out how to make the handler restore the palettes after the compaction. I'm sure there's a simple answer, but I'm stumped. Why does the following *not* work? on doMenu what if what is "Compact Stack" then close window "MyPalette" pass doMenu palette "MyPalette", "345,80" else pass doMenu end doMenu Thanks. Ralph Lombreglia Internet: ralph@world.std.com MCI Mail: rlombreglia Bix: rlombreglia