Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.dal.ca!dal1!keith From: keith@ac.dal.ca Newsgroups: comp.sys.mac.hypercard Subject: DOWN Message-ID: <1285@ac.dal.ca> Date: 1 Mar 90 16:25:15 GMT Lines: 11 Organisation: Dalhousie University, Halifax, Nova Scotia, Canada I'm writing a stack which does key trapping in one field only. When the user selects another field by either tabbing into it or selecting it with the mouse the key trapping is turned off. The XFCN which I use to do the key trapping is called "controlLock". Problems arise when the user opens the message box and tries to type something into it because the key trapping (which remaps the keyboard) is still on. The only solution to the problem which I have discovered so far is to turn off the key trapping manually with a button, but its not as elegant as I'd like. Does anyone know how to detect opening of the message box in a script? Thanks, KeithThanks, keith